Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/enter", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:shax, Float:shay, Float:shaz;
- new Float:shbx, Float:shby, Float:shbz;
- new Float:shcx, Float:shcy, Float:shcz;
- GetVehiclePos(EnterableShamals[0], shax, shay, shaz);
- GetVehiclePos(EnterableShamals[1], shbx, shby, shbz);
- GetVehiclePos(EnterableShamals[2], shcx, shcy, shcz);
- for(new i = 0; i < sizeof(HouseInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
- {
- if(GetPlayerVirtualWorld( playerid) == 0)
- {
- if(HouseInfo[i][hLocked] == 0 || PlayerInfo[playerid][pScrew] >= 1)
- {
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger has entered the house.");
- }
- else
- {
- format(string, sizeof(string), "* %s has entered the house.", sendername);
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- PlayerInfo[playerid][InHouse] = i;
- TogglePlayerControllable(playerid, false);
- Loaded[playerid] = 1;
- ShowLoading(playerid);
- SetTimer("LoadPlayer",3100,false);
- SetPlayerInterior( playerid, HouseInfo[i][hInteriorID]);
- SetPlayerVirtualWorld( playerid, HouseInfo[i][hVirWorld]);
- PlayerInfo[playerid][pVirtualWorld] = HouseInfo[i][hVirWorld];
- SetPlayerPos( playerid, HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]);
- if(HouseInfo[i][hRadio] > 0 && HouseInfo[i][hRadio] <= RADIOS)
- {
- new cRadio = HouseInfo[i][hRadio];
- switch(cRadio)
- {
- case 1:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
- }
- case 2:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1979774");
- }
- case 3:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
- }
- }
- }
- for(new x = 0; x <MAX_PLAYERS; x++)
- {
- new id = PlayerInfo[x][pPhousekey];
- if(HouseInfo[id][hAlarmSystem] == 1 && HouseInfo[id][hAlarmNumber] != 0 && AlarmOnline[id] == 0)
- {
- for(new a = 0; a <MAX_PLAYERS; a++)
- {
- if(IsPlayerConnected(a))
- {
- if(PlayerInfo[playerid][pScrew] >= 1 && HouseInfo[i][hLocked] == 1)
- {
- if(PlayerInfo[a][pPnumber] == HouseInfo[id][hAlarmNumber])
- {
- new success = random(4);
- if(success == 1)
- {
- format(string, sizeof(string), "House Alarm: Someone has tryed to enter inside the house but failed!");
- SendCopMessage(COLOR_DBLUE,string);
- PlayerInfo[playerid][pScrew] -= 1;
- SendClientMessage(playerid, COLOR_GREY, "You failed to enter inside the house, run!");
- format(string, sizeof(string), "SMS: This is an automated message informing you that registrant %s's house alarm has been activated.",GetName(x));
- SendClientMessage(a, COLOR_YELLOW, string);
- if(IsACop(a))
- {
- SetPlayerCheckpoint(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ], 3.0);
- CP[a] = 46488;
- }
- if(PlayerInfo[playerid][pWantedLevel] <= 6)
- {
- PlayerInfo[playerid][pWantedLevel] += 1;
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
- }
- PlayerInfo[playerid][pVirtualWorld] = 0;
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, HouseInfo[i][hExteriorID]);
- SetPlayerPos(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]);
- }
- else
- {
- format(string, sizeof(string), "House Alarm: Someone has successfully entered inside the house!");
- SendCopMessage(COLOR_DBLUE,string);
- PlayerInfo[playerid][pScrew] -= 1;
- if(IsACop(a))
- {
- SetPlayerCheckpoint(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ], 3.0);
- CP[a] = 46488;
- }
- if(PlayerInfo[playerid][pWantedLevel] <= 6)
- {
- PlayerInfo[playerid][pWantedLevel] += 1;
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
- }
- SendClientMessage(playerid, COLOR_GREY, "You successfully enter inside the house!");
- format(string, sizeof(string), "SMS: This is an automated message informing you that registrant %s's house alarm has been activated.",GetName(x));
- SendClientMessage(a, COLOR_YELLOW, string);
- }
- }
- }
- }
- }
- }
- }
- }
- else
- {
- GameTextForPlayer(playerid, "~r~House is Locked!", 1000, 5);
- }
- }
- }
- }
- for(new h = 0; h < sizeof(EntranceInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid,EntranceInfo[h][EntranceEnterRadius],EntranceInfo[h][EntranceEnterX],EntranceInfo[h][EntranceEnterY],EntranceInfo[h][EntranceEnterZ]) && GetPlayerVirtualWorld(playerid) == EntranceInfo[h][EntranceExitVW])
- {
- new i = h;
- new bool:wait = false;
- /* Added because people kept /entering as soon as an admin creates an entrance */ if (EntranceInfo[h][EntranceInsideX] == 0) return SendClientMessage(playerid, GREY, "Entrance is not set up yet.");
- if (EntranceInfo[h][EntranceLocked]) return SendClientMessage(playerid, GREY, "This entrance is locked.");
- if (EntranceInfo[h][EntranceFaction] != 0 && PlayerInfo[playerid][pMember] != EntranceInfo[h][EntranceFaction]) return SendClientMessage(playerid, GREY, "This entrance is restricted to a certain faction, you can't enter.");
- if (EntranceInfo[h][EntranceVIP] != 0 && PlayerInfo[playerid][pDonateRank] < EntranceInfo[h][EntranceVIP]) return SendClientMessage(playerid, GREY, "This entrance is restricted to VIP's higher than your level, you can't enter.");
- if (EntranceInfo[h][EntranceEnterWait]) { wait = true; }
- //SetPlayerVirtualWorld(playerid, h);
- //SetPlayerVirtualWorld(playerid, EntranceInfo[h][EntranceVirtualWorld]);
- //SetPlayerInterior(playerid, EntranceInfo[h][EntranceInterior]);
- //Enter[playerid] = h;
- new vehicleid;
- new Seat[MAX_PLAYERS], InCar[MAX_PLAYERS];
- if (EntranceInfo[h][EntranceTeleVeh] == 1 && IsPlayerInAnyVehicle(playerid))
- {
- if (GetPlayerVehicleSeat(playerid) != 0) return 1;
- vehicleid = GetPlayerVehicleID(playerid);
- SetVehiclePos(vehicleid, EntranceInfo[i][EntranceInsideX],EntranceInfo[i][EntranceInsideY], EntranceInfo[i][EntranceInsideZ] + 0.4);
- SetVehicleZAngle(vehicleid, EntranceInfo[i][EntranceInsideA]);
- SetVehicleWorld(vehicleid, EntranceInfo[i][EntranceVirtualWorld]);
- SetVehicleInterior(vehicleid, EntranceInfo[i][EntranceInterior]);
- for(new j = 0; j < MAX_PLAYERS; j++)
- {
- if(IsPlayerInVehicle(j, vehicleid))
- {
- InCar[j] = vehicleid;
- Seat[j] = GetPlayerVehicleSeat(j);
- SetPlayerInterior(j, EntranceInfo[i][EntranceInterior]);
- SetPlayerVirtualWorld(j, EntranceInfo[i][EntranceVirtualWorld]);
- }
- }
- }
- SetPlayerPosEx(playerid, EntranceInfo[i][EntranceInsideX],EntranceInfo[i][EntranceInsideY], EntranceInfo[i][EntranceInsideZ]);
- SetPlayerFacingAngle(playerid, EntranceInfo[i][EntranceInsideA]);
- SetPlayerInterior(playerid, EntranceInfo[i][EntranceInterior]);
- SetPlayerVirtualWorld(playerid, EntranceInfo[i][EntranceVirtualWorld]);
- if (vehicleid != 0)
- {
- for (new j = 0; j < MAX_PLAYERS; j++)
- {
- if (InCar[j] == 0) continue;
- if (InCar[j] == vehicleid)
- {
- PutPlayerInVehicle(j, vehicleid, Seat[j]);
- }
- }
- }
- KillTimer(ObjectWaitTimer[playerid]);
- if (wait == true) ObjectWait(playerid, EntranceInfo[h][EntranceInsideX], EntranceInfo[h][EntranceInsideY], EntranceInfo[h][EntranceInsideZ]);
- }
- }
- for(new i = 0; i < sizeof(MInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, MInfo[i][mExteriorX], MInfo[i][mExteriorY], MInfo[i][mExteriorZ]))
- {
- if(GetPlayerInterior(playerid) == MInfo[i][mExteriorID] && GetPlayerVirtualWorld(playerid) == 0)
- {
- if(MInfo[i][mVIP] != 1 || PlayerInfo[playerid][pDonateRank] != 0)
- {
- if(MInfo[i][mLocked] == 0)
- {
- PlayerInfo[playerid][Inmotel] = i;
- SetPlayerInterior( playerid, MInfo[i][mInteriorID]);
- SetPlayerVirtualWorld( playerid, MInfo[i][mVirWorld]);
- PlayerInfo[playerid][pVirtualWorld] = MInfo[i][mVirWorld];
- Pause(playerid);
- SetPlayerPos(playerid, MInfo[i][mInteriorX], MInfo[i][mInteriorY], MInfo[i][mInteriorZ]);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Motel Full - No Rooms Avaliable!", 1000, 5);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a VIP!");
- }
- }
- }
- }
- for(new i = 0; i < sizeof( BizzInfo ); i++)
- {
- if(IsPlayerInRangeOfPoint( playerid, 3, BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
- {
- if(GetPlayerVirtualWorld( playerid ) == 0)
- {
- if(BizzInfo[i][bLocked] == 0)
- {
- if(PlayerInfo[playerid][pCash] >= BizzInfo[i][bEntranceCost])
- {
- if(PlayerInfo[playerid][pMask] == 1)
- {
- format(string, sizeof(string), "* Stranger has entered the business.");
- }
- else
- {
- format(string, sizeof(string), "* %s has entered the business.", sendername);
- }
- TogglePlayerControllable(playerid, false);
- Loaded[playerid] = 1;
- ShowLoading(playerid);
- SetTimer("LoadPlayer",3100,false);
- SetPlayerInterior( playerid, BizzInfo[i][bInteriorID]);
- SetPlayerPos( playerid, BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]);
- PlayerInfo[playerid][InBusiness] = i;
- SetPlayerVirtualWorld( playerid, BizzInfo[i][bVirWorld]);
- PlayerInfo[playerid][pVirtualWorld] = BizzInfo[i][bVirWorld];
- if(BizzInfo[i][bRadio] != 0 && BizzInfo[i][bRadio] != RADIOS+1)
- {
- new cRadio = BizzInfo[i][bRadio];
- switch(cRadio)
- {
- case 1:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
- }
- case 2:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1979774");
- }
- case 3:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
- }
- }
- }
- if(BizzInfo[i][bType] == 1)
- {
- SendClientMessage( playerid, COLOR_YELLOW, "You have entered a 24 / 7");
- SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy - /buykit" );
- }
- else if(BizzInfo[i][bType] == 2)
- {
- SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Clothes Store!");
- SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy - /acessories" );
- }
- else if(BizzInfo[i][bType] == 3)
- {
- SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Club!");
- SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" );
- }
- else if(BizzInfo[i][bType] == 4)
- {
- SendClientMessage( playerid, COLOR_YELLOW, "You entered in an Ammunation!");
- SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" );
- }
- else if(BizzInfo[i][bType] == 5)
- {
- SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Casino!");
- SendClientMessage( playerid, COLOR_WHITE, "USAGE: /bet & /buy");
- }
- else if(BizzInfo[i][bType] == 6)
- {
- SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Restaurant!");
- SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" );
- }
- else if(BizzInfo[i][bType] == 7)
- {
- GetPlayerArmour(playerid, pKevlar[playerid]);
- GetPlayerHealth(playerid, pHP[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Paintball Weapon Shop!");
- PlayerPaintballing[playerid] = 1;
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You can now buy your weapons!");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy");
- }
- else if(BizzInfo[i][bType] == 8)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Bank!");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bankpercent, /wiretransfer, /deposit , /withdraw & /atmcard" );
- }
- else if(BizzInfo[i][bType] == 9)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You entered in an Electronic Store!");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy" );
- }
- else if(BizzInfo[i][bType] == 10)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Locks Store!");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buylock" );
- }
- else if(BizzInfo[i][bType] == 11)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Radio shop!");
- SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy");
- }
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
- GivePlayerMoney(playerid, -BizzInfo[i][bEntranceCost]);
- PlayerInfo[playerid][pCash] -= BizzInfo[i][bEntranceCost];
- ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You don't have enough money to enter!");
- }
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Business is Locked!", 1000, 5);
- }
- }
- }
- }
- for(new i = 0; i < sizeof(BInfo); i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3, BInfo[i][bExteriorX], BInfo[i][bExteriorY], BInfo[i][bExteriorZ]))
- {
- if(GetPlayerInterior(playerid) == BInfo[i][bExteriorID] && GetPlayerVirtualWorld(playerid) == 0)
- {
- if(BInfo[i][bVIP] != 1 || PlayerInfo[playerid][pDonateRank] != 0)
- {
- if(BInfo[i][bLocked] == 0)
- {
- PlayerInfo[playerid][Inbuilding] = i;
- SetPlayerInterior( playerid, BInfo[i][bInteriorID]);
- SetPlayerVirtualWorld( playerid, BInfo[i][bVirWorld]);
- PlayerInfo[playerid][pVirtualWorld] = BInfo[i][bVirWorld];
- Pause(playerid);
- SetPlayerPos(playerid, BInfo[i][bInteriorX], BInfo[i][bInteriorY], BInfo[i][bInteriorZ]);
- if(BInfo[i][buRadio] >= 1 && strlen(BInfo[i][buRadioURL]))
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid, BInfo[i][buRadioURL]);
- }
- }
- else
- {
- GameTextForPlayer(playerid, "~r~Building is Locked!", 1000, 5);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a VIP!");
- }
- }
- }
- }
- for(new h = 0; h < sizeof(HQInfo); h++)
- {
- if(IsPlayerInRangeOfPoint(playerid,2.0,HQInfo[h][HQEnterX],HQInfo[h][HQEnterY],HQInfo[h][HQEnterZ]))
- {
- if(HQInfo[h][HQInsideX] == 0) return SendClientMessage(playerid, GREY, "HQ is not set up yet.");
- if(HQInfo[h][HQLocked]) return SendClientMessage(playerid, GREY, "HQ is locked.");
- SetPlayerVirtualWorld(playerid, h + 2000);
- SetPlayerPosEx(playerid, HQInfo[h][HQInsideX],HQInfo[h][HQInsideY],HQInfo[h][HQInsideZ]);
- SetPlayerInterior(playerid, HQInfo[h][HQInterior]);
- SetCameraBehindPlayer(playerid);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 3, 1310.0685,-1367.6198,13.5382)) //Paintball Entrance
- {
- PaintballPlayers ++;
- PlayerPaintballing[playerid] = 1;
- new rand = random(sizeof(PaintballSpawns));
- SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid, 0);
- }
- //-----------------------------[Prison Entrances]------------------------//
- /*else if(IsPlayerInRangeOfPoint(playerid,2.0,1771.6210,-1547.4747,9.9129)) // Yard to Inside [Fun Time]
- {
- GameTextForPlayer(playerid,"~w~Objects Loading...",1000,5);
- Pause(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,1852.0464,-1732.5062,5202.5859);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2.0,1769.3439,-1549.8958,9.9112)) // Yard to Inside [Prisoining]
- {
- GameTextForPlayer(playerid,"~w~Objects Loading...",1000,5);
- Pause(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,1864.7402,-1725.0553,5202.5859);
- }
- */
- else if(IsPlayerInRangeOfPoint(playerid,2.0,1797.4753,-1579.0033,14.0861)) // Outside Prison to Inside
- {
- GameTextForPlayer(playerid,"~w~Objects Loading..",1000,5);
- Pause(playerid);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1862.0128,-1700.4945,5202.5859);
- }
- //-----------------------------[Prison Entrances]------------------------//
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2755.3499,-2515.5325,13.6397)) // Gun Depot Enter Point
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid,2776.5386,-1492.2943,1066.2562);
- GameTextForPlayer(playerid, "~w~Gun Depot", 5000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,1765.7958,-1705.0437,13.4707)) // EMS new building
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerVirtualWorld(playerid, 101);
- SetPlayerInterior(playerid,16);
- SetPlayerPos(playerid,2046.1004638672,-1765.7945556641,767.94354248047);
- GameTextForPlayer(playerid, "~w~E.M.S building", 5000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //SHAMAL 1
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger has entered the shamal.");
- else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 1337);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid,2.57, 33.14, 1200);
- GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
- GivePlayerGun(playerid, 46);
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,shbx,shby,shbz)) //SHAMAL 2
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger has entered the shamal.");
- else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 1338);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid,2.57, 33.14, 1200);
- GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
- GivePlayerGun(playerid, 46);
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,shcx,shcy,shcz)) //SHAMAL 3
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger has entered the shamal.");
- else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetPlayerVirtualWorld(playerid, 1339);
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid,2.57, 33.14, 1200);
- GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
- GivePlayerGun(playerid, 46);
- }
- /*
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2873.03,-2041.66,11.10)) //V.I.P Lounge
- {
- if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP.");
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 2876.15,-2041.59,11.07);///gotoint 0 2365.81640625 -1706.4645996094 1195.7257080078 OLD ONE
- GameTextForPlayer(playerid, "~b~V.I.P Lounge", 3000, 1);
- }*/
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.3635,-1580.5297,13.5498)) //Italian Resturant
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 4);
- SetPlayerPos(playerid, 1564.7557373047,-1730.5688476563,1125.6225585938);
- GameTextForPlayer(playerid, "~w~The Italian Resturant", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 328.2883,-1923.6836,1.4061)) //Santa Maria Resturant
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, -794.806396,497.738037,1376.195312);
- GameTextForPlayer(playerid, "~w~Santa Maria Resturant", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1587.0557,-1730.1108,1441)) // Hall To Jails 2
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 1587.4763,-1728.4971,1441);
- GameTextForPlayer(playerid, "~w~Detention Facility", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1588.2921,-1745.8655,1441.2000)) // Prison Reception
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 1589.6949,-1744.9985,1441.2000);
- GameTextForPlayer(playerid, "~w~Prison Reception", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -5.2309,-325.4293,5.4297)) // Prison Store
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 209.8902,-152.7066,-89.7323);
- GameTextForPlayer(playerid, "~w~Prison Store", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -30.8378,-361.3748,5.4297)) // Control Room
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -27.0908,-379.4108,14.9761);
- GameTextForPlayer(playerid, "~w~Control Room", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -107.5323,-219.7949,2.0466)) // Another Infim.
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1148.3007,-1318.3501,1023.7019);
- GameTextForPlayer(playerid, "~w~Infirmary Two", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -5.2309,-325.4293,5.4297)) // Prison Store
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 209.8902,-152.7066,-89.7323);
- GameTextForPlayer(playerid, "~w~Prison Store", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1581.6827,-1730.2046,1441.2000)) // From Prison Hall to Jails
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 1581.0818,-1728.5902,1441.1000);
- GameTextForPlayer(playerid, "~w~Detention Facility", 3000, 1);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2233.2905,-1159.6998,25.8906)) // Jefferson Motel
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, 2215.454833,-1147.475585,1025.796875);
- GameTextForPlayer(playerid, "~w~Jefferson Motel", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1547.3805,-1269.3496,17.4063)) // Tommy's Apartment
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1591.90002441,-1239.90002441,221.10000610);
- GameTextForPlayer(playerid, "~w~Tommy's Apartment", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1833.8832,-1125.6548,24.6721)) // v.i.p Garage
- {
- if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP.");
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434);
- SetPlayerInterior(playerid, 0);
- GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1720.31,-1740.75,13.54)) // Royal Church Main Door
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -2025.0823,1143.2609,18.0688);
- GameTextForPlayer(playerid, "~w~Los Santos Royal Church", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -2024.87,1143.05,18.06)) // Royal Church Main Door exit
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1720.31,-1740.75,13.54);
- GameTextForPlayer(playerid, "~w~Exiting", 3000, 1);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2139.1563,-1742.7773,13.5524)) // Ganton Sex Shop
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, -100.3464,-24.8610,1000.7188);
- GameTextForPlayer(playerid, "~w~Ganton Sex Shop", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1524.4841,-1677.8577,6.2188)) // LSPD Training Place Enter
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2195.96875,-1890.1411132813,903.56622314453);
- GameTextForPlayer(playerid, "~b~L.S.P.D Training Range", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2034.1747,-1401.6726,17.2948)) // County Hospital
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 2403.6315917969,-1873.8382568359,977.00183105469);
- GameTextForPlayer(playerid, "~w~County Hospital", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2045.0454,-1913.2452,13.5469)) // DMV
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875);
- GameTextForPlayer(playerid, "~w~Department Of Motor Vehicles", 3000, 1);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1333.4658,-1864.3909,13.5469)) // 2 Dragons Strip Club
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, -2637.0388,1402.2401,906.4609);
- GameTextForPlayer(playerid, "~r~Two Dragons Strip Club", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 389.4164,-1162.6322,1227.8639)) // FBI Elevator which leads to Second Floor
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 391.95086669922,-1159.1645507813,1235.4501953125);
- GameTextForPlayer(playerid, "~r~F.B.I - Second Floor", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 393.1075,-1162.8607,1227.8639)) // FBI Elevator which leads to Prisons Floor
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 397.96765136719,-1166.8763427734,1224.2651367188);
- GameTextForPlayer(playerid, "~r~F.B.I - Prisons Floor", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2070.8240,-1793.8846,13.5533)) // Barber
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687);
- GameTextForPlayer(playerid, "~w~The Barber", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2508.3833,-2205.7219,13.5469)) // Drug Depot Enter from Outside
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 2203.7878,-1817.9066,960.5386);
- GameTextForPlayer(playerid, "~w~The Drug Depot", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2206.0955,-1821.6783,943.1324)) // Drug Depot Enter from Bottom
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 2250.0303,-1791.3995,915.8544);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2312.1548,-1508.6281,26.8438)) // Los Santos Royal Church Interior
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, -2001.2556,1096.8164,18.8574);
- GameTextForPlayer(playerid, "~w~Los Santos Royal Church", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2253.9475,-1333.1809,23.9815)) // Los Santos Church Main Door
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid, 178.60601806641,-100.326538085942,1029.4976806641);
- GameTextForPlayer(playerid, "~w~Los Santos Church", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1658.4365,-1691.3781,15.6094)) // FBI Door from Garage Which lead to Prisons
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 385.09,-1154.54,1223.66);
- GameTextForPlayer(playerid, "~w~F.B.I Department", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1654.0979,-1655.1139,22.5156)) // FBI Door from Roof Which lead to Second Floor
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 357.4144,-1166.8655,1234.8639);
- GameTextForPlayer(playerid, "~w~F.B.I Department", 3000, 1);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2421.5442,-1219.2491,25.5612)) // PigPen
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 2);
- SetPlayerPos(playerid, 1204.809936,-11.586799,1000.921875);
- GameTextForPlayer(playerid, "~r~The PigPen", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, -86.0714,-299.3637,2.7646)) // Director Office of Prison
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -220.3469,-251.2590,8.4680);
- GameTextForPlayer(playerid, "~r~Director's Office", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2068.5889,-1779.9105,13.5596)) // Tatto
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 16);
- SetPlayerPos(playerid, -204.439987,-26.453998,1002.273437);
- GameTextForPlayer(playerid, "~r~Tatto Shop", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1742.9120,-1943.8079,13.5689)) // Unity Station from train to inside
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, -1973.2489,168.5225,539.0989);
- GameTextForPlayer(playerid, "~w~Unity Station", 3000, 1);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2310.0693,-1643.5203,14.8270)) // Ten Green Bottles
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 11);
- SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
- GameTextForPlayer(playerid, "~w~Ten Green Bottles", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1296.4255,-1424.8632,14.9531)) // Bar near PB
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 1358.6835,-488.1862,650.7677);
- GameTextForPlayer(playerid, "~w~Two Elephants Resturant", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0,2105.4717,-1806.5591,13.5547)) // Pizza Stack
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 372.2533,-133.3005,1001.4922);
- GameTextForPlayer(playerid, "~w~Pizza Stack", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2487.7549,2397.2488,4.2109)) //VIP Garage to lounge / lounge to garge
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 2417.8186,-1705.3455,1195.0190);
- SetPlayerInterior(playerid, 10);
- GameTextForPlayer(playerid,"~b~V.I.P Lounge", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2257.35,-71.02,31.60)) //HITMAN
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 3210.75,714.29,1014.14);
- SetPlayerInterior(playerid, 10);
- GameTextForPlayer(playerid,"~b~Hitman HQ", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, -572.08,-1498.06,9.54)) //SS
- {
- if(IsAnAgent(playerid))
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 2145.3159,1597.3687,1003.9677);
- SetPlayerInterior(playerid, 1);
- GameTextForPlayer(playerid,"~w~ The Secret Service", 3000, 1);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY,"You are not a Member of the Secret Service Orgnization");
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1769.8843,-1867.9167,13.5696)) //Unity Station People Entrance
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, -2007.7353515625,176.60624694824,540.34661865234);
- SetPlayerInterior(playerid, 15);
- GameTextForPlayer(playerid,"~w~Unity Station", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1752.4977,-1894.1453,13.5574)) //Unity Station Workers Entrance
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, -1961.6540527344,164.9091796875,546.71893310547);
- SetPlayerInterior(playerid, 15);
- GameTextForPlayer(playerid,"~w~Unity Station", 3000, 1);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2229.7354,-1721.5267,13.5639)) //Gym
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 772.111999,-3.898649,1000.728820);
- SetPlayerInterior(playerid, 5);
- GameTextForPlayer(playerid,"~w~Los Santos Gym", 3000, 1);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1786.9857,-1720.8442,13.5426)) // Chinese Resturant
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 1026.8576660156,-1309.5942382813,-20.835353851318);
- SetPlayerInterior(playerid, 6);
- GameTextForPlayer(playerid,"~w~China Resturant", 3000, 1);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid,3.0,626.9654,-571.7671,17.9207)) //SASD
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, 322.2817,303.3415,999.1484);
- SetPlayerFacingAngle( playerid, 0.0000);
- GameTextForPlayer(playerid, "~w~S.A.S.D", 5000, 1);
- PlayerInfo[playerid][pInt] = 5;
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,1676.8248,-1634.7830,14.2266)) //FBI building
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 367.62509155273,-1149.8499755859,1228.7457275391);
- SetPlayerFacingAngle(playerid, 0.0000);
- GameTextForPlayer(playerid, "~w~Federal Bureau of Investigation", 5000, 1);
- PlayerInfo[playerid][pInt] = 10;
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1601.9219,-2157.7139,13.7401)) //FIRE DEPARTMENT ENTERANCE
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 368.0984,162.2898,1019.9844);
- PlayerInfo[playerid][pInt] = 3;
- GameTextForPlayer(playerid, "~r~E.M.S HeadQuarters", 5000, 1);
- SetPlayerFacingAngle(playerid, 90.0);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6975, -1325.3914, 15.4019)) //HOSPITAL GROUND ENTER (NEW)
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 1199.0801,-1366.3083,1017.8790);
- PlayerInfo[playerid][pInt] = 1;
- GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1);
- SetPlayerFacingAngle(playerid, 271.3973);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1154.5345, -1343.6583, 26.6953)) //HOSPITAL ROOF ENTER (NEW)
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 1);
- SetPlayerPos(playerid, 1216.2145,-1379.2618,1029.4714);
- PlayerInfo[playerid][pInt] = 1;
- GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1);
- SetPlayerFacingAngle(playerid, 1.0922);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3, 1568.6840,-1691.0090,5.8906)) //Garage-LSPD Enterance
- {
- if(IsACop(playerid))
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid,246.4211,87.0546,1003.6406);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1);
- SetPlayerFacingAngle(playerid, 180.0000);
- PlayerInfo[playerid][pInt] = 6;
- }
- }
- /* else if(IsPlayerInRangeOfPoint(playerid, 3, 1564.8468,-1666.1549,28.3956)) //LSPD Roof-LSPD Enterance
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid,242.7468,66.3155,1003.6406);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1);
- SetPlayerFacingAngle(playerid, 270.0);
- PlayerInfo[playerid][pInt] = 6;
- }*/
- else if(IsPlayerInRangeOfPoint(playerid, 3, 1554.5262,-1675.7283,16.1953)) //LSPD enter
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid,246.7284,62.6640,1003.6406);
- SetCameraBehindPlayer(playerid);
- GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1);
- SetPlayerFacingAngle(playerid, 90.0000);
- SetPlayerInterior(playerid, 6);
- PlayerInfo[playerid][pInt] = 6;
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3, 2447.8350,-1962.6876,13.5469)) //Los Santos Export Depot
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid,2573.0928,-1302.0148,1044.1250);
- SetCameraBehindPlayer(playerid);
- PlayerInfo[playerid][pInt] = 2;
- SetPlayerInterior(playerid, 2);
- GameTextForPlayer(playerid, "~w~Los Santos ~n~Export Depot building", 5000, 1);
- SetPlayerFacingAngle(playerid, 270.0000);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid,3.0,1038.2180,-1340.5763,13.7432)) //Donut Store
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 377.1611,-191.6544,1000.6328);
- SetPlayerFacingAngle(playerid, 0.0000);
- GameTextForPlayer(playerid, "~w~Jim's Sticky Ring", 5000, 1);
- PlayerInfo[playerid][pInt] = 17;
- SetCameraBehindPlayer(playerid);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid,3.0,1481.0209,-1770.9374,18.7958)) //City Hall
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 384.5713,173.6477,1008.3828);
- SetPlayerFacingAngle(playerid, 90.0000);
- GameTextForPlayer(playerid, "~w~ City Hall", 5000, 1);
- PlayerInfo[playerid][pInt] = 3;
- SetCameraBehindPlayer(playerid);
- }
- /*else if(IsPlayerInRangeOfPoint(playerid,3.0, 1244.7333, 205.3294, 19.6454)) // Donut Store Enterance
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerVirtualWorld(playerid, 3);
- SetPlayerInterior(playerid, 17);
- SetPlayerPos(playerid, 377.1611,-191.6544,1000.6328);
- SetPlayerFacingAngle(playerid, 0.0000);
- PlayerInfo[playerid][pInt] = 17;
- PlayerInfo[playerid][pVirtualWorld] = 3;
- GameTextForPlayer(playerid, "~w~Montgomery ~n~~r~Cafe", 5000, 1);
- SetCameraBehindPlayer(playerid);
- }*/
- else if(IsPlayerInRangeOfPoint(playerid,3.0, -13.0313,-335.9020,5.4297)) // Cafeteria Enterance
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 4);
- SetPlayerPos(playerid, 459.2668, -88.6474, 999.5547);
- SetPlayerFacingAngle(playerid, 89.9299);
- PlayerInfo[playerid][pInt] = 4;
- GameTextForPlayer(playerid, "~w~Cafeteria", 5000, 1);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,-174.2122,-247.5509,1.4297)) //Infirmary
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerPos(playerid, 268.7222,1862.8405,8.7578);
- GameTextForPlayer(playerid, "~w~Infirmary One", 5000, 1);
- SetPlayerFacingAngle(playerid, 180.0);
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,-49.8847,-269.3661,6.6332)) //Doc building
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid, 18);
- SetPlayerPos(playerid, -202.2018,-204.9514,14.0696);
- GameTextForPlayer(playerid, "~w~Department of Correction", 5000, 1);
- SetPlayerFacingAngle(playerid, 90.0000);
- PlayerInfo[playerid][pInt] = 18;
- SetCameraBehindPlayer(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,3.0,2695.6235,-1704.6960,11.8438))
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid,7);
- SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
- GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
- PlayerInfo[playerid][pInt] = 7;
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,-2111.5686,-443.9720,38.7344))
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid,4);
- SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
- GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track", 5000, 1);
- PlayerInfo[playerid][pInt] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,8.0,-2080.3079,-406.0309,38.7344))
- {
- GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
- Pause(playerid);
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
- GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track", 5000, 1);
- PlayerInfo[playerid][pInt] = 14;
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment