05.08.2013, 16:43
pawn Код:
stock choose_random_player()
{
new random_player = random(MAX_PLAYERS);
if(!IsPlayerConnected( random_player ) )
{
choose_random_player();
}
else return random_player;
}
pawn Код:
GivePlayerWeapon(choose_random_player(), WEAPONID, AMMO);