Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- if(strcmp(cmd, "/exit", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLocal] != 999) //in house
- {
- if(IsAtHouseExit(playerid))
- {
- if(PlayerInfo[playerid][pMask] == 1) { sendername = "Stranger"; }
- format(string, sizeof(string), "* %s has left the house.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]);
- SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]-180);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pVirtualWorld] = 0;
- PlayerInfo[playerid][pLocal] = 999;
- return 1;
- }
- }
- for(new i = 0; i < sizeof(BizzInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,3,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ])) //businesses
- {
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
- return 1;
- }
- }
- if(PlayerPaintballing[playerid] != 0)
- {
- SetPlayerWeapons(playerid);
- PlayerPaintballing[playerid] = 0;
- SetPlayerPos(playerid,BizzInfo[0][bEntranceX],BizzInfo[0][bEntranceY],BizzInfo[0][bEntranceZ]);
- TogglePlayerControllable(playerid, 1);
- PaintballPlayers --;
- return 1;
- }
- if(IsPlayerInRangeOfPoint(playerid,3.0,246.3711,108.7005,1003.2188)) //FBI HQ
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1774.6836,-1665.9792,14.4277);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerFacingAngle(playerid, 125.0000);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,385.2311,173.8202,1008.3828)) //Brotherhood
- {
- if(GetPlayerInterior(playerid) == 101)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerPos(playerid, 1654.1302,-1655.0974,22.5156);
- SetPlayerFacingAngle(playerid, 181.8075);
- SetCameraBehindPlayer(playerid);
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2305.5840,-16.0986,26.7496)) //Bank
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1462.5475,-1012.7440,26.8438);
- SetPlayerFacingAngle(playerid, 181.8075);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 421.0744,2536.7888,10.0000)) //Renegade Syndicate
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1615.3910,-1783.8541,13.5043);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 414.1622,2536.6467,10.0000)) //Renegade Syndicate
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1620.5050,-1778.2992,13.5420);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2548.7195,-1294.7968,1060.9844)) //Shadow Complex
- {
- SetPlayerPos(playerid, 1083.0120,-1226.5403,15.8203);
- SetPlayerInterior(playerid,0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0, 1462.611450,-1012.072937,26.843750)) //Bank
- {
- SetPlayerPos(playerid, 2305.688964,-16.088100,26.749565);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2145.3159,1597.3687,1003.9677)) //Secret Society(yuris faction)
- {
- SetPlayerPos(playerid,-49.9580,-272.2011,6.6332);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, -228.0731,1401.1146,27.7656)) //Coffee Shop
- {
- SetPlayerPos(playerid,2501.7598,-1494.6981,24.0000);
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1226.6959,-813.4658,1084.0078))
- {
- SetPlayerPos(playerid,152.3280,1370.0015,1088.3672);
- SetPlayerInterior(playerid, 5);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 239.3269,1084.1855,1084.1875))
- {
- SetPlayerPos(playerid,2851.8997,-1365.9199,14.1708);
- SetPlayerInterior(playerid, 0);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2003.9025,1017.7690,994.4688))
- {
- SetPlayerPos(playerid,1270.6495,-1668.1027,19.7344);
- SetPlayerInterior(playerid, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 3.0,387.7978,173.8582,1008.3828))
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,1481.1178,-1770.9368,18.7958);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 302.180999,300.722991,999.148437))
- {
- SetPlayerPos(playerid,134.6600,1379.9559,1088.36721);
- SetPlayerInterior(playerid, 5);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 6.0,-1404.5299,-259.0602,1043.6563))
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 8.0,-1443.0554,-581.1879,1055.0472))
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 367.1499,162.3410,1019.9844)) //FIRE DEPARTMENT HQ
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1499.5010,-2182.5254,13.9437);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerFacingAngle(playerid, 270.0);
- SetCameraBehindPlayer(playerid);
- }
- /* else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1199.0801, -1366.3083, 1017.8790)) //HOSPITAL GROUND EXIT (NEW)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1173.7834, -1325.3622, 15.1953);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerFacingAngle(playerid, 270.5877);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1216.2145, -1379.2618, 1029.4714)) //HOSPITAL ROOF EXIT (NEW)
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1154.5394, -1344.0690, 26.7013);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerFacingAngle(playerid, 181.0622);
- SetCameraBehindPlayer(playerid);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 246.5112,87.4867,1003.6406)) //LSPD-Garage Exit
- {
- if(IsACop(playerid))
- {
- SetPlayerPos(playerid,1568.5718,-1691.0177,5.8906);
- SetPlayerFacingAngle(playerid, 180.0000);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 242.2760,66.3317,1003.6406)) //LSPD-Roof Exit
- {
- SetPlayerPos(playerid,1564.8464,-1666.1444,28.3956);
- SetPlayerFacingAngle(playerid, 0.0000);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 964.5875,-53.1907,1001.1172)) // Los Santos Confidential
- {
- if(PlayerInfo[playerid][pVirtualWorld] == 299)
- {
- SetPlayerPos(playerid,2494.1038,-1463.2928,24.0244);
- SetPlayerFacingAngle(playerid, 0.0000);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- PlayerInfo[playerid][pInt] = 0;
- PlayerInfo[playerid][pVirtualWorld] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- return 1;
- }
- return 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 8.0,2.57, 33.14, 1200)) // SHAMAL
- {
- new
- vwcheck = GetPlayerVirtualWorld(playerid),
- Float:px,
- Float:py,
- Float:pz,
- Float:za,
- Float:vx,
- Float:vy,
- Float:vz,
- vehicle
- ;
Advertisement
Add Comment
Please, Sign In to add comment