30.03.2012, 01:03
Hi, I have my own house system but i'm confused. I have it set so that when a player buys a house it sets their House Key var to the House's ID, this works perfectly but when it comes to checking the house key and house id it just doesn't work.
There is the code to spawn a player who has just logged in at their house, thats if they have one. How would I script it?
pawn Код:
if(PlayerInfo[playerid][pHouse] > -1) {
SetPlayerPosEx(playerid, HouseInfo[PlayerInfo[playerid][pHouse]][hX], HouseInfo[PlayerInfo[playerid][pHouse]][hY], HouseInfo[PlayerInfo[playerid][pHouse]][hZ]);
}