



Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!/*
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;
}
}
}
if(level.gungame == true)
{
for(i=0;i<players.size;i++)
{
thread maps\gungame::GungameCheckPoints(players[i].gungame_points);
wait 0.1;
}
}
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++;
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
GungameWeapons(players[i],gungame_points);
GungameWeapons(players[i].gungame_points);
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
GungameWeapons(players,gungame_points)
{
if(players.gungame_points == 4)
GungameWeapons(players,gungame_points)
{
if(gungame_points == 4)
players = get_players();
level.gungame = true;
players.gungame_points = 0;
players = get_players();
level.gungame = true;
for ( i = 0; i < players.size; i++ )
{
players[ i ].gungame_points = 0;
}