16.05.2012, 14:50
Delete the loop, you don't need.
pawn Код:
public OnPlayerSpawn ( playerid )
{
if (gTeam[playerid] == TEAM_POLICE)
SendClientMessage(playerid, 0xFFFFFFFF, "Police!");
else if (gTeam[playerid] == TEAM_SWAT)
SendClientMessage(playerid, 0xFFFFFFFF, "SWAT!");
else if (gTeam[playerid] == TEAM_TERRORISTS)
SendClientMessage(playerid, 0xFFFFFFFF, "Terrorists!");
else if (gTeam[playerid] == TEAM_HUNTERS)
SendClientMessage(playerid, 0xFFFFFFFF, "Hunters!");
new vR = random(sizeof(Vrand));
SetPlayerPos(playerid, Vrand[vR][0], Vrand[vR][1], Vrand[vR][2]);
return 1;
}