Hello here my entire script for gungame :
/* Non du script : gungame.gsc Auteur : [inVc] Wolf_silver Version : 1.0 Note : Script pour le mode jeu d'armes du "frmappingmod". Ne prenez pas ce script pour votre propre map sans permission!! en revanche pour les utilisateurs du frmappingmod, ce script peut-être modifiées. */ #include common_scripts\utility; #include maps\_utility; #include maps\_zombiemode_utility; #include maps\_anim; main() { iprintlnbold("init"); players = get_players(); level.gungame = true; players.gungame_points = 0; if( level.gungame == true) { for(i=0;i<players.size;i++) { players[i] AllowMelee( false ); // Désactive le couteau players[i] thread GungameAmmo(); // Désactive les grenades et redonne des munitions en permanence } } } GungameCheckPoints(gungame_points) { players = get_players(); for(i=0;i<players.size;i++) { players[i].gungame_points++; iprintlnbold("point ajoute"); GungameWeapons(players[i],gungame_points); } } /* //////////////////////////////////////////////////////////////////////////////////////////////// Armes//////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// Vous pouvez personnaliser les armes ici///////////////////////////////////////////////////// */ GungameWeapons(players,gungame_points) { if(players.gungame_points == 4) { players giveweapon( "makarov" ); players takeWeapon( "bo1_m1911" ); players switchtoweapon( "makarov" ); current_gun = players getcurrentweapon(); } } /* //////////////////////////////////////////////////////////////////////////////////////////////// Armes//////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// Vous pouvez personnaliser les armes ici///////////////////////////////////////////////////// */ GungameAmmo() { players = get_players(); for(i=0;i<players.size;i++) { while(level.intermission == false) { current_gun = players[i] getcurrentweapon(); if(self HasWeapon("molotov")) self TakeWeapon("molotov"); if(self HasWeapon("zombie_cymbal_monkey")) self TakeWeapon("zombie_cymbal_monkey"); if(self HasWeapon("fraggrenade")) self TakeWeapon("fraggrenade"); if(self HasWeapon("stielhandgranate")) self TakeWeapon("stielhandgranate"); self giveMaxAmmo(current_gun); wait 0.1; } } }
I have also put this:
if(level.gungame == true) { for(i=0;i<players.size;i++) { thread maps\gungame::GungameCheckPoints(players[i].gungame_points); wait 0.1; } }
in _zombiemode_score.gsc after:
case "death": points = level.zombie_vars["zombie_score_kill"]; points += player_add_points_kill_bonus( mod, hit_location ); if(IsDefined(self.kill_tracker)) { self.kill_tracker++; }
all works exept major thing.. when i kill only 1 zombies i obtain makarov becausa after many test i think gungame_points of function "GungameChecksPoints()" is not same as function "GungameWeapons()"
i hope you will understand me and my terrible english
thanks to read this message and double thanks if you can help me ^^