24.02.2011, 18:23
Use foreach.
pawn Код:
#include <foreach>
pawn Код:
forward RandomZombie(MAX_PLAYERS);
pawn Код:
public OnGameModeInit()
{
SetTimer(RandomZombie, 30000, false);
return 1;
}
pawn Код:
public RandomZombie(playerid)
{
new randomplayer = Iter_Random(Player);
PlayerTeam[randomplayer] = 0;
SendClientMessage(randomplayer,0x00FF22,"ZOMBIEKING : I have chosen you to be my zombie!");
return 1;
}