25.08.2010, 00:37
I have this code under OnPlayerSpawn
and when i spawn in house my pos get set on this
pawn Код:
for(new i; i<MAX_HOUSES; i++)
{
if(strcmp(Ime, HouseInfo[i][HouseOwner]))
{
SetPlayerPos(playerid, HouseInfo[i][TeleX], HouseInfo[i][TeleY], HouseInfo[i][TeleZ]);
SetPlayerInterior(playerid, HouseInfo[i][Interior]);
InHouse[playerid] = i;
SetPlayerVirtualWorld(playerid, HouseInfo[i][Virtual]);
}
}