Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new i = 1; i <= sizeof(HouseInfo); i++) {
- if(EditHouse[playerid] != 0) return 1;
- if(PlayerInfo[playerid][pSleeping] == 1) return 1;
- if(PlayerToPoint(2, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && HouseInfo[i][hVirtual] == GetPlayerVirtualWorld(playerid)) {
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
- InHouse[playerid] = -1;
- PlayRadio[playerid] = 0;
- StopAudioStreamForPlayer(playerid);
- }
- }
- for(new i = 1; i <= sizeof(BizzInfo); i++) {
- if(PlayerInfo[playerid][pSleeping] == 1) return 1;
- if(PlayerToPoint(2, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]) && BizzInfo[i][bVirtual]==GetPlayerVirtualWorld(playerid))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPosEx(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
- if(i == 27) {
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("UnFreezeStation", 1000, false, "i", playerid);
- }
- PlayerInfo[playerid][pLocal] = 255;
- SetPlayerVirtualWorld(playerid,0);
- InBussines[playerid] = -1;
- PlayRadio[playerid] = 0;
- StopAudioStreamForPlayer(playerid);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement