how give random player weapon?
#8

pawn Код:
stock choose_random_player()
{
     new random_player = random(MAX_PLAYERS);
     if(!IsPlayerConnected( random_player ) )
     {
           choose_random_player();
     }
     else return random_player;
}
Now use this to give weapon:
pawn Код:
GivePlayerWeapon(choose_random_player(), WEAPONID, AMMO);
Reply


Messages In This Thread
how give random player weapon? - by EitayEliyahu - 05.08.2013, 15:57
Re: how give random player weapon? - by Sliceofdeath - 05.08.2013, 16:01
Re: how give random player weapon? - by Konstantinos - 05.08.2013, 16:02
Re: how give random player weapon? - by EitayEliyahu - 05.08.2013, 16:03
Re: how give random player weapon? - by Sliceofdeath - 05.08.2013, 16:04
Re: how give random player weapon? - by EitayEliyahu - 05.08.2013, 16:06
Re: how give random player weapon? - by Jefff - 05.08.2013, 16:39
Re: how give random player weapon? - by RajatPawar - 05.08.2013, 16:43

Forum Jump:


Users browsing this thread: 2 Guest(s)