30.10.2010, 21:15
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:
or this one:
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; }
Код:
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; } }