Spawn issue
#1

Basicly after you login you get the out of world boundries messange any idea whats wrong?
Код:
public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Zombie_One", true))
        {
            SetPlayerSkin(playerid, 162);
            SetPlayerPos(playerid, 1776.4562,-1895.7217,13.3867);
            TogglePlayerControllable(playerid, true);
			SetPlayerColor(playerid, BLANCO2);
			gTeam[playerid] = EZOMBIE;
		}
		if(!strcmp(npcname, "Zombie_Two", true))
        {
            SetPlayerSkin(playerid, 162);
            SetPlayerPos(playerid, 1507.4354,-1730.9388,13.3828);
            TogglePlayerControllable(playerid, true);
			SetPlayerColor(playerid, BLANCO2);
			gTeam[playerid] = EZOMBIE;
		}
		if(!strcmp(npcname, "Zombie_Three", true))
        {
            SetPlayerSkin(playerid, 162);
            SetPlayerPos(playerid, 1776.4562,-1895.7217,13.3867);
            TogglePlayerControllable(playerid, true);
			SetPlayerColor(playerid, BLANCO2);
			gTeam[playerid] = EZOMBIE;
		}
		if(!strcmp(npcname, "Zombie_Four", true))
        {
            SetPlayerSkin(playerid, 162);
            SetPlayerPos(playerid, 1646.6248,-1837.0089,13.5448);
            TogglePlayerControllable(playerid, true);
			SetPlayerColor(playerid, BLANCO2);
			gTeam[playerid] = EZOMBIE;
		}
		if(!strcmp(npcname,"Bot_Intro",true))
		{
      		PutPlayerInVehicle(playerid,50, 0);
      		new coche = GetPlayerVehicleID(playerid);
   			SetVehicleParamsEx(coche, 1, 0, -1, 0, 0, 0, 0);
      		TogglePlayerControllable(playerid, true);
			SetPlayerColor(playerid, BLANCO2);
			gTeam[playerid] = EHUMANO;
    	}
		else
		{
		    new which_spawn = random(4);
			if(which_spawn == 0)
		  	{
		  	    SetPlayerSkin(playerid, 162);
		  		SetPlayerPos(playerid,1138.4512,-1385.9067,13.7797);
		  		SetPlayerInterior(playerid,0);
		  		TogglePlayerControllable(playerid, true);
			}
			else if(which_spawn == 1)
		 	{
		 	    SetPlayerSkin(playerid, 162);
		  		SetPlayerPos(playerid,1543.7426,-1305.9878,16.1152);
			    SetPlayerInterior(playerid,0);
			    TogglePlayerControllable(playerid, true);
			}
			else if(which_spawn == 2)
		 	{
		 	    SetPlayerSkin(playerid, 162);
		  		SetPlayerPos(playerid,2578.9900,-1412.2079,24.4618);
		   		SetPlayerInterior(playerid,0);
		      	TogglePlayerControllable(playerid, true);
			}
			else if(which_spawn == 3)
		 	{
		 	    SetPlayerSkin(playerid, 162);
				SetPlayerPos(playerid,2578.9900,-1412.2079,24.4618);
		   		SetPlayerInterior(playerid,0);
		   		TogglePlayerControllable(playerid, true);
			}
		}
        return 1;
	}
Reply
#2

well... have you changed the boundaries?
Reply
#3

Havent even added any where should i add them and what should i add?
Reply
#4

if your using any filterscripts I would recommend checking them in case.


edit: Could always try SetSpawnInfo instead too.
Reply
#5

cant seem to solve this anyone villing to try over Team viewer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)