08.09.2017, 17:09
This is how my OnPlayerSpawn looks
But still, i freeze and im not spawning at the Hospital, any suggestions?
Код:
public OnPlayerSpawn(playerid) { if(Died[playerid]==1) { Died[playerid]=0; if(IsPlayerInRangeOfPoint(playerid,2500,2034.6943,-1406.8729,17.1975)) { SetPlayerPos(playerid,2034.6943,-1406.8729,17.1975); } if(IsPlayerInRangeOfPoint(playerid,2500,1578.3215,1768.5914,10.8203)) { SetPlayerPos(playerid,1578.3215,1768.5914,10.8203); } if(IsPlayerInRangeOfPoint(playerid,2500,-2648.6311,635.9958,14.4531)) { SetPlayerPos(playerid,-2648.6311,635.9958,14.4531); } if(!IsPlayerInRangeOfPoint(playerid,2500,-2648.6311,635.9958,14.4531)&&!IsPlayerInRangeOfPoint(playerid,2500,1578.3215,1768.5914,10.8203)&&!IsPlayerInRangeOfPoint(playerid,2500,2034.6943,-1406.8729,17.1975)) { SetPlayerPos(playerid,1177.9857,-1323.0596,14.0977); } }