30.12.2010, 12:59
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(hasDied[playerid])
{
new rand = random(playersAliveCount);
while(gTeam[rand] != gTeam[playerid])
{
rand = random(playersAliveCount);
}
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, rand);
return 0;
}
}