11.02.2013, 13:10
Hi guys...
I searched forums and i couldn't find how to fix this problem. The problem is that when you first enter the server and you spawn at house, you will spawn outside the house and the virtual world will be changed...
Code: (GodFather)
Solution ?
I searched forums and i couldn't find how to fix this problem. The problem is that when you first enter the server and you spawn at house, you will spawn outside the house and the virtual world will be changed...
Code: (GodFather)
pawn Код:
if(house !=255 && PlayerInfo[playerid][pCekaBolnica] == 0 && PlayerInfo[playerid][pJailed] == 0)
{
if(PlayerInfo[playerid][pSpawn] == 1) //If 1, then you get to your house, else spawn somewhere else
{
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
SetPlayerFacingAngle(playerid, HouseInfo[house][hExita]);
return 1;
}
}