Spawn problem
#1

Here's the issue
When a player buys a house or is in a Gang they are supposed to spawn at their house after they get killed/die

The problem is they spawn at connectspawn witch is airport
and im not quite sure how to fix this posted 2 codes im kinda sure one of them is the thing i need to put my hands on would appreciate some help please.

either this:

Код:
}
		if(JustDied[playerid] == 1)
		{
		    if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
		    {
		        SetPlayerVirtualWorld(playerid, 0);
		        PlayerInfo[playerid][pVirWorld] = 0;
		    }
		    SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
		    SetPlayerFacingAngle(playerid, 270.0);
		    SetPlayerInterior(playerid,0);
		    PlayerInfo[playerid][pInt] = 0;
		    return 1;
		}
or this one:

Код:
if(house !=255)
    	{
                if(SpawnChange[playerid] == 1) //If 1, then you get to your house, else spawn somewhere else
                {
                SetPlayerToTeamColor(playerid);
                SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
                SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
                PlayerInfo[playerid][pLocal] = house;
                HouseEntered[playerid] = house;
                PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                return 1;
                }
		}
Reply


Messages In This Thread
Spawn problem - by NotoriousMOB - 30.10.2010, 21:15
Re: Spawn problem - by Scripter123 - 30.10.2010, 21:22
Re: Spawn problem - by NotoriousMOB - 30.10.2010, 21:29
Re: Spawn problem - by Mike_Peterson - 30.10.2010, 21:42
Re: Spawn problem - by NotoriousMOB - 30.10.2010, 21:48
Re: Spawn problem - by Mike_Peterson - 30.10.2010, 21:53
Re: Spawn problem - by NotoriousMOB - 30.10.2010, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)