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!//Grenade Disposal===================
p = get_players();
for(i=0;i<p.size;i++)
{
p[i] thread watch_for_grenade();
p[i] IPrintLnBold("Player Connected");
}
// Grenade Disposal=================
// Grenade Disposal
watch_for_grenade()
{
self endon( "death" );
self endon( "disconnect" );
for (;;)
{
self waittill("grenade_fire",grenade,weapname);
self IPrintLnBold(weapname);
if(weapname == "fraggrenade" || weapname == "Stielhandgranate")
{
self IPrintLnBold("Grenade Thrown");
grenade thread disposal(self, "grenade_check_trig");
}
}
}
disposal(player, grenade_disposal)
{
player IPrintLnBold("Checking for trig");
trig = getEnt( "targetname" , "grenade_disposal");
checking = 1;
while(checking)
{
wait(0.05);
if(self isTouching(trig))
{
player maps\_zombiemode_score::add_to_player_score(20);
self delete();
player IPrintLnBold("Deleting Grenade");
}
checking = 0;
}
}
level.DLC3.useChestMoves = true;