24.01.2012, 15:03
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == Cop)
{
new rand = random(sizeof(BattleFieldSpawns));
SetPlayerPos(playerid, SpawnsCops[rand][0], SpawnsCops[rand][1],SpawnsCops[rand][2]);SetPlayerFacingAngle(playerid, SpawnsCops[rand][3]);
}
else
{
new rand = random(sizeof(BattleFieldSpawns));
SetPlayerPos(playerid, SpawnsCivilian[rand][0], SpawnsCivilian[rand][1],SpawnsCivilian[rand][2]);SetPlayerFacingAngle(playerid, SpawnsCivilian[rand][3]);
}
return 1;
}

