24.07.2011, 19:01
Thank you MoroDan.
By the way, do you think that something's wrong down here?
All of this is on OnPlayerSpawn.
Its supposed to be a function that checks if the player has house, and if he does, it spawning him into his house when logs.
By the way, do you think that something's wrong down here?
pawn Код:
else if(Player[playerid][House] != 0)
{
for(new i = 0; i < sizeof(Houses); i++) {
if(Player[playerid][PrisonID] != 1) {
if(Player[playerid][PrisonID] != 2)
{
Player[playerid][InHouse] = i;
SetPlayerInterior(playerid, Houses[i][hInteriorID]);
SetPlayerVirtualWorld(playerid, 55000+i);
SetPlayerPos(playerid, Houses[playerid][hInteriorX], Houses[playerid][hInteriorY], Houses[playerid][hInteriorZ]); } } }
}
}
Its supposed to be a function that checks if the player has house, and if he does, it spawning him into his house when logs.