03.07.2013, 22:52
Why do I keep spawning at the Jefferson Motel when I have it set to spawn at the SF airport?? Sorry for the horrible indentation, pasting it screwed it up.
Here's my OnPlayerSpawn code:
Here's my OnPlayerSpawn code:
Код:
public OnPlayerSpawn(playerid) { if(isplayerindeathmatch == 1) { if(isplayeringlassdm == 1) { GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 30, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 34, 99999); SetPlayerPos(playerid,50.37, 1531.16, 54.41); return 1; } if(isplayerinarea51dm == 1) { GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 30, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 34, 99999); SetPlayerPos(playerid, 149.7019,1902.0339,25.6639); return 1; } if(isplayerinlvdm == 1) { GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 30, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 34, 99999); SetPlayerPos(playerid, 1094.5999756,1046.3000488,9.8000002); return 1; } if(isplayerinairdm == 1) { GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 30, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 34, 99999); SetPlayerPos(playerid, 2882.6213,-1427.3887,753.0781); return 1; } if(isplayerinislanddm == 1) { GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 30, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 34, 99999); SetPlayerPos(playerid,2625.3249511719, 4245.5600585938, 5.5); return 1; } else { GivePlayerWeapon(playerid, 4, 1); GivePlayerWeapon(playerid, 24, 99999); GivePlayerWeapon(playerid, 27, 99999); GivePlayerWeapon(playerid, 30, 99999); GivePlayerWeapon(playerid, 32, 99999); GivePlayerWeapon(playerid, 34, 99999); SetPlayerPos(playerid, -1425.5676,-145.6458,14.1484); if(PlayerInfo[playerid][Frozen] == 1) //Get the info outta the enum and check if the player is still frozen { TogglePlayerControllable(playerid,0); //Won't let the player move SendClientMessage(playerid,COLOR_RED,"WARNING: You are still frozen."); //Send him a message } } } return 1; }