04.02.2014, 23:53
Well here is.
Код:
for(new i = 0; i < sizeof(HouseInfo); i++) { if(PlayerInfo[playerid][pPhousekey] == i || PlayerInfo[playerid][pPhousekey2] == i) { Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]); SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]); if(HouseInfo[i][hCustomInterior] == 1) { TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid, "Objects loading...", 4000, 5); SetPVarInt(playerid, "LoadingObjects", 1); SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid); } SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]); GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1); PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld]; PlayerInfo[playerid][pLocal] = i+6000; PlayerInfo[playerid][pVW] = i+6000; SetPlayerVirtualWorld(playerid, i+6000); } }