Spawning at the Jefferson Motel
#1

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:
Код:
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;
}
Reply
#2

Anyone?
Reply
#3

Where is your AddPlayerClass Being spawned?
Reply
#4

On top of a tower
here's the class for AddPlayerClass:

Код:
AddPlayerClass(75,2230.9919,-1158.4938,29.7969,91.6852,0,0,0,0,0,0);
It's the same for all of them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)