24.01.2012, 18:23
pawn Код:
public OnPlayerSpawn(playerid)
{
new rand = random(4);
if(gTeam[playerid] == COP) { SetPlayerPos(playerid,SpawnCops[rand][0],SpawnCops[rand][1],SpawnCops[rand][2]); SetPlayerFacingAngle(playerid,SpawnCops[rand][3]);}
else
{
rand = random(4);
SetPlayerPos(playerid,SpawnCivillian[rand][0],SpawnCivillian[rand][1],SpawnCivillian[rand][2]);
SetPlayerFacingAngle(playerid,SpawnCivillian[rand][3]);
}
return 1;
}