16.12.2014, 11:11
i have also system like this but mine works fine
pawn Код:
public OnPlayerSpawn(playerid)
{
if(NewPlayer[playerid] == true)
{
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]);
NewPlayer[playerid] = false;
return 1;
}
else if(Death[playerid] == true)
{
SetPlayerPos(playerid, 2038.1417,-1411.3397,17.1641);//hospital spawn
SetPlayerFacingAngle(playerid, 130.9140);
Death[playerid] = false;
return 1;
}
return 1;
}