18.07.2011, 20:34
Hey, i have this, this is, after login spawn in your bought house, but when i spawn i can get out of my house and
if i allowed HouseEntered and i go out of house and relog, i didn't spawn in my house but before my house, out of house...
Please look and tell me, what is bad on this..
if i allowed HouseEntered and i go out of house and relog, i didn't spawn in my house but before my house, out of house...
Please look and tell me, what is bad on this..
pawn Код:
if(SpawnChange[playerid]) //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;