help with SpawnPlayerAtHouse & RentFeeUp
#2

pawn Код:
stock SpawnPlayerAtHouse(playerid)
{
    for(new i = 0; i < MAX_HOUSES; i++)
    {
        if(strcmp(HouseInfo[playerid][hOwner], GetName(playerid), true) || strcmp(HouseInfo[playerid][hRentUser], GetName(playerid), true))
        {
            SetPlayerPos(playerid, HouseInfo[i][hExitX], HouseInfo[i][hExitY], HouseInfo[i][hExitZ]);
            SetPlayerInterior(playerid, HouseInfo[i][hInterior]);
            SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]);
            PlayerEnteredHisHouse[playerid] = true;
            return i;
        }
    }
    return 1;
}
try this
Reply


Messages In This Thread
help with SpawnPlayerAtHouse & RentFeeUp - by System64 - 06.11.2011, 09:11
Re: help with SpawnPlayerAtHouse & RentFeeUp - by Speed - 06.11.2011, 09:17
Re: help with SpawnPlayerAtHouse & RentFeeUp - by System64 - 06.11.2011, 09:20

Forum Jump:


Users browsing this thread: 1 Guest(s)