16.12.2014, 11:45
(
Последний раз редактировалось Flori; 16.12.2014 в 12:20.
)
Make something like this: It's easier if you just use one array instead of this 2 ones.
pawn Код:
new NewOrDie[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(NewOrDie[playerid] == 0)
{
new rand = random(sizeof(SpawnSkins));
SetPlayerPos(playerid, 836.8863,-2064.6953,12.8672);// New Player Spawn
SetPlayerFacingAngle(playerid, 1.3629);
SetPlayerSkin(playerid, SpawnSkins[rand][0]);
NewOrDie[playerid] = 1;
}
else if(NewOrDie[playerid] == 1)
{
SetPlayerPos(playerid, 2038.1417,-1411.3397,17.1641);//hospital spawn
SetPlayerFacingAngle(playerid, 130.9140);
}
return 1;
}