19.02.2011, 13:41
When player enters the house you need to chech what is house ID ( I'm gonna pretend it's 1)
So, when player enters house
And when he exits the house
Something like this...
So, when player enters house
pawn Код:
SetPVarInt(playerid, "InHouseID", /*Here you put your code to set house ID to player, mine is ->*/1);
pawn Код:
new hID = GetPVarInt(playerid, "InHouseID"));
//Open the file where you have your houses saved and just...
SetPlayerPos(playerid, House[hID][exitX], House[hID][exitY], House[hID][exitZ]);