Guest User

enter command

a guest
Aug 2nd, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.73 KB | None | 0 0
  1. if(strcmp(cmd, "/enter", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. new Float:shax, Float:shay, Float:shaz;
  6. new Float:shbx, Float:shby, Float:shbz;
  7. new Float:shcx, Float:shcy, Float:shcz;
  8. GetVehiclePos(EnterableShamals[0], shax, shay, shaz);
  9. GetVehiclePos(EnterableShamals[1], shbx, shby, shbz);
  10. GetVehiclePos(EnterableShamals[2], shcx, shcy, shcz);
  11. for(new i = 0; i < sizeof(HouseInfo); i++)
  12. {
  13. if(IsPlayerInRangeOfPoint(playerid, 3, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]))
  14. {
  15. if(GetPlayerVirtualWorld( playerid) == 0)
  16. {
  17. if(HouseInfo[i][hLocked] == 0 || PlayerInfo[playerid][pScrew] >= 1)
  18. {
  19. if(PlayerInfo[playerid][pMask] == 1)
  20. {
  21. format(string, sizeof(string), "* Stranger has entered the house.");
  22. }
  23. else
  24. {
  25. format(string, sizeof(string), "* %s has entered the house.", sendername);
  26. }
  27. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  28. PlayerInfo[playerid][InHouse] = i;
  29. TogglePlayerControllable(playerid, false);
  30. Loaded[playerid] = 1;
  31. ShowLoading(playerid);
  32. SetTimer("LoadPlayer",3100,false);
  33. SetPlayerInterior( playerid, HouseInfo[i][hInteriorID]);
  34. SetPlayerVirtualWorld( playerid, HouseInfo[i][hVirWorld]);
  35. PlayerInfo[playerid][pVirtualWorld] = HouseInfo[i][hVirWorld];
  36. SetPlayerPos( playerid, HouseInfo[i][hInteriorX], HouseInfo[i][hInteriorY], HouseInfo[i][hInteriorZ]);
  37. if(HouseInfo[i][hRadio] > 0 && HouseInfo[i][hRadio] <= RADIOS)
  38. {
  39. new cRadio = HouseInfo[i][hRadio];
  40. switch(cRadio)
  41. {
  42. case 1:
  43. {
  44. StopAudioStreamForPlayer(playerid);
  45. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  46. }
  47. case 2:
  48. {
  49. StopAudioStreamForPlayer(playerid);
  50. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1979774");
  51. }
  52. case 3:
  53. {
  54. StopAudioStreamForPlayer(playerid);
  55. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
  56. }
  57. }
  58. }
  59. for(new x = 0; x <MAX_PLAYERS; x++)
  60. {
  61. new id = PlayerInfo[x][pPhousekey];
  62. if(HouseInfo[id][hAlarmSystem] == 1 && HouseInfo[id][hAlarmNumber] != 0 && AlarmOnline[id] == 0)
  63. {
  64. for(new a = 0; a <MAX_PLAYERS; a++)
  65. {
  66. if(IsPlayerConnected(a))
  67. {
  68. if(PlayerInfo[playerid][pScrew] >= 1 && HouseInfo[i][hLocked] == 1)
  69. {
  70. if(PlayerInfo[a][pPnumber] == HouseInfo[id][hAlarmNumber])
  71. {
  72. new success = random(4);
  73. if(success == 1)
  74. {
  75. format(string, sizeof(string), "House Alarm: Someone has tryed to enter inside the house but failed!");
  76. SendCopMessage(COLOR_DBLUE,string);
  77. PlayerInfo[playerid][pScrew] -= 1;
  78. SendClientMessage(playerid, COLOR_GREY, "You failed to enter inside the house, run!");
  79. format(string, sizeof(string), "SMS: This is an automated message informing you that registrant %s's house alarm has been activated.",GetName(x));
  80. SendClientMessage(a, COLOR_YELLOW, string);
  81. if(IsACop(a))
  82. {
  83. SetPlayerCheckpoint(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ], 3.0);
  84. CP[a] = 46488;
  85. }
  86. if(PlayerInfo[playerid][pWantedLevel] <= 6)
  87. {
  88. PlayerInfo[playerid][pWantedLevel] += 1;
  89. SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
  90. }
  91. PlayerInfo[playerid][pVirtualWorld] = 0;
  92. SetPlayerVirtualWorld(playerid, 0);
  93. SetPlayerInterior(playerid, HouseInfo[i][hExteriorID]);
  94. SetPlayerPos(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ]);
  95. }
  96. else
  97. {
  98. format(string, sizeof(string), "House Alarm: Someone has successfully entered inside the house!");
  99. SendCopMessage(COLOR_DBLUE,string);
  100. PlayerInfo[playerid][pScrew] -= 1;
  101. if(IsACop(a))
  102. {
  103. SetPlayerCheckpoint(playerid, HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ], 3.0);
  104. CP[a] = 46488;
  105. }
  106. if(PlayerInfo[playerid][pWantedLevel] <= 6)
  107. {
  108. PlayerInfo[playerid][pWantedLevel] += 1;
  109. SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
  110. }
  111. SendClientMessage(playerid, COLOR_GREY, "You successfully enter inside the house!");
  112. format(string, sizeof(string), "SMS: This is an automated message informing you that registrant %s's house alarm has been activated.",GetName(x));
  113. SendClientMessage(a, COLOR_YELLOW, string);
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }
  121. }
  122. else
  123. {
  124. GameTextForPlayer(playerid, "~r~House is Locked!", 1000, 5);
  125. }
  126. }
  127. }
  128. }
  129. for(new h = 0; h < sizeof(EntranceInfo); h++)
  130. {
  131. if(IsPlayerInRangeOfPoint(playerid,EntranceInfo[h][EntranceEnterRadius],EntranceInfo[h][EntranceEnterX],EntranceInfo[h][EntranceEnterY],EntranceInfo[h][EntranceEnterZ]) && GetPlayerVirtualWorld(playerid) == EntranceInfo[h][EntranceExitVW])
  132. {
  133. new i = h;
  134. new bool:wait = false;
  135. /* 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.");
  136. if (EntranceInfo[h][EntranceLocked]) return SendClientMessage(playerid, GREY, "This entrance is locked.");
  137. 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.");
  138. 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.");
  139. if (EntranceInfo[h][EntranceEnterWait]) { wait = true; }
  140. //SetPlayerVirtualWorld(playerid, h);
  141. //SetPlayerVirtualWorld(playerid, EntranceInfo[h][EntranceVirtualWorld]);
  142. //SetPlayerInterior(playerid, EntranceInfo[h][EntranceInterior]);
  143. //Enter[playerid] = h;
  144. new vehicleid;
  145. new Seat[MAX_PLAYERS], InCar[MAX_PLAYERS];
  146. if (EntranceInfo[h][EntranceTeleVeh] == 1 && IsPlayerInAnyVehicle(playerid))
  147. {
  148. if (GetPlayerVehicleSeat(playerid) != 0) return 1;
  149. vehicleid = GetPlayerVehicleID(playerid);
  150. SetVehiclePos(vehicleid, EntranceInfo[i][EntranceInsideX],EntranceInfo[i][EntranceInsideY], EntranceInfo[i][EntranceInsideZ] + 0.4);
  151. SetVehicleZAngle(vehicleid, EntranceInfo[i][EntranceInsideA]);
  152. SetVehicleWorld(vehicleid, EntranceInfo[i][EntranceVirtualWorld]);
  153. SetVehicleInterior(vehicleid, EntranceInfo[i][EntranceInterior]);
  154. for(new j = 0; j < MAX_PLAYERS; j++)
  155. {
  156. if(IsPlayerInVehicle(j, vehicleid))
  157. {
  158. InCar[j] = vehicleid;
  159. Seat[j] = GetPlayerVehicleSeat(j);
  160. SetPlayerInterior(j, EntranceInfo[i][EntranceInterior]);
  161. SetPlayerVirtualWorld(j, EntranceInfo[i][EntranceVirtualWorld]);
  162. }
  163. }
  164. }
  165. SetPlayerPosEx(playerid, EntranceInfo[i][EntranceInsideX],EntranceInfo[i][EntranceInsideY], EntranceInfo[i][EntranceInsideZ]);
  166. SetPlayerFacingAngle(playerid, EntranceInfo[i][EntranceInsideA]);
  167. SetPlayerInterior(playerid, EntranceInfo[i][EntranceInterior]);
  168. SetPlayerVirtualWorld(playerid, EntranceInfo[i][EntranceVirtualWorld]);
  169. if (vehicleid != 0)
  170. {
  171. for (new j = 0; j < MAX_PLAYERS; j++)
  172. {
  173. if (InCar[j] == 0) continue;
  174. if (InCar[j] == vehicleid)
  175. {
  176. PutPlayerInVehicle(j, vehicleid, Seat[j]);
  177. }
  178. }
  179. }
  180. KillTimer(ObjectWaitTimer[playerid]);
  181. if (wait == true) ObjectWait(playerid, EntranceInfo[h][EntranceInsideX], EntranceInfo[h][EntranceInsideY], EntranceInfo[h][EntranceInsideZ]);
  182. }
  183. }
  184. for(new i = 0; i < sizeof(MInfo); i++)
  185. {
  186. if(IsPlayerInRangeOfPoint(playerid, 3, MInfo[i][mExteriorX], MInfo[i][mExteriorY], MInfo[i][mExteriorZ]))
  187. {
  188. if(GetPlayerInterior(playerid) == MInfo[i][mExteriorID] && GetPlayerVirtualWorld(playerid) == 0)
  189. {
  190. if(MInfo[i][mVIP] != 1 || PlayerInfo[playerid][pDonateRank] != 0)
  191. {
  192. if(MInfo[i][mLocked] == 0)
  193. {
  194. PlayerInfo[playerid][Inmotel] = i;
  195. SetPlayerInterior( playerid, MInfo[i][mInteriorID]);
  196. SetPlayerVirtualWorld( playerid, MInfo[i][mVirWorld]);
  197. PlayerInfo[playerid][pVirtualWorld] = MInfo[i][mVirWorld];
  198. Pause(playerid);
  199. SetPlayerPos(playerid, MInfo[i][mInteriorX], MInfo[i][mInteriorY], MInfo[i][mInteriorZ]);
  200. }
  201. else
  202. {
  203. GameTextForPlayer(playerid, "~r~Motel Full - No Rooms Avaliable!", 1000, 5);
  204. }
  205. }
  206. else
  207. {
  208. SendClientMessage(playerid, COLOR_GREY, " You are not a VIP!");
  209. }
  210. }
  211. }
  212. }
  213. for(new i = 0; i < sizeof( BizzInfo ); i++)
  214. {
  215. if(IsPlayerInRangeOfPoint( playerid, 3, BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
  216. {
  217. if(GetPlayerVirtualWorld( playerid ) == 0)
  218. {
  219. if(BizzInfo[i][bLocked] == 0)
  220. {
  221. if(PlayerInfo[playerid][pCash] >= BizzInfo[i][bEntranceCost])
  222. {
  223. if(PlayerInfo[playerid][pMask] == 1)
  224. {
  225. format(string, sizeof(string), "* Stranger has entered the business.");
  226. }
  227. else
  228. {
  229. format(string, sizeof(string), "* %s has entered the business.", sendername);
  230. }
  231. TogglePlayerControllable(playerid, false);
  232. Loaded[playerid] = 1;
  233. ShowLoading(playerid);
  234. SetTimer("LoadPlayer",3100,false);
  235. SetPlayerInterior( playerid, BizzInfo[i][bInteriorID]);
  236. SetPlayerPos( playerid, BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]);
  237. PlayerInfo[playerid][InBusiness] = i;
  238. SetPlayerVirtualWorld( playerid, BizzInfo[i][bVirWorld]);
  239. PlayerInfo[playerid][pVirtualWorld] = BizzInfo[i][bVirWorld];
  240. if(BizzInfo[i][bRadio] != 0 && BizzInfo[i][bRadio] != RADIOS+1)
  241. {
  242. new cRadio = BizzInfo[i][bRadio];
  243. switch(cRadio)
  244. {
  245. case 1:
  246. {
  247. StopAudioStreamForPlayer(playerid);
  248. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
  249. }
  250. case 2:
  251. {
  252. StopAudioStreamForPlayer(playerid);
  253. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1979774");
  254. }
  255. case 3:
  256. {
  257. StopAudioStreamForPlayer(playerid);
  258. PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  259. }
  260. }
  261. }
  262. if(BizzInfo[i][bType] == 1)
  263. {
  264. SendClientMessage( playerid, COLOR_YELLOW, "You have entered a 24 / 7");
  265. SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy - /buykit" );
  266. }
  267. else if(BizzInfo[i][bType] == 2)
  268. {
  269. SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Clothes Store!");
  270. SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy - /acessories" );
  271. }
  272. else if(BizzInfo[i][bType] == 3)
  273. {
  274. SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Club!");
  275. SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" );
  276. }
  277. else if(BizzInfo[i][bType] == 4)
  278. {
  279. SendClientMessage( playerid, COLOR_YELLOW, "You entered in an Ammunation!");
  280. SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" );
  281. }
  282. else if(BizzInfo[i][bType] == 5)
  283. {
  284. SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Casino!");
  285. SendClientMessage( playerid, COLOR_WHITE, "USAGE: /bet & /buy");
  286. }
  287. else if(BizzInfo[i][bType] == 6)
  288. {
  289. SendClientMessage( playerid, COLOR_YELLOW, "You entered in a Restaurant!");
  290. SendClientMessage( playerid, COLOR_WHITE, "USAGE: /buy" );
  291. }
  292. else if(BizzInfo[i][bType] == 7)
  293. {
  294. GetPlayerArmour(playerid, pKevlar[playerid]);
  295. GetPlayerHealth(playerid, pHP[playerid]);
  296. SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Paintball Weapon Shop!");
  297. PlayerPaintballing[playerid] = 1;
  298. PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  299. SendClientMessage(playerid, COLOR_LIGHTRED, "You can now buy your weapons!");
  300. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy");
  301. }
  302. else if(BizzInfo[i][bType] == 8)
  303. {
  304. SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Bank!");
  305. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bankpercent, /wiretransfer, /deposit , /withdraw & /atmcard" );
  306. }
  307. else if(BizzInfo[i][bType] == 9)
  308. {
  309. SendClientMessage(playerid, COLOR_YELLOW, "You entered in an Electronic Store!");
  310. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy" );
  311. }
  312. else if(BizzInfo[i][bType] == 10)
  313. {
  314. SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Locks Store!");
  315. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buylock" );
  316. }
  317. else if(BizzInfo[i][bType] == 11)
  318. {
  319. SendClientMessage(playerid, COLOR_YELLOW, "You entered in a Radio shop!");
  320. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy");
  321. }
  322. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  323. BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
  324. GivePlayerMoney(playerid, -BizzInfo[i][bEntranceCost]);
  325. PlayerInfo[playerid][pCash] -= BizzInfo[i][bEntranceCost];
  326. ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
  327. }
  328. else
  329. {
  330. SendClientMessage(playerid, COLOR_GREY, " You don't have enough money to enter!");
  331. }
  332. }
  333. else
  334. {
  335. GameTextForPlayer(playerid, "~r~Business is Locked!", 1000, 5);
  336. }
  337. }
  338. }
  339. }
  340. for(new i = 0; i < sizeof(BInfo); i++)
  341. {
  342. if(IsPlayerInRangeOfPoint(playerid, 3, BInfo[i][bExteriorX], BInfo[i][bExteriorY], BInfo[i][bExteriorZ]))
  343. {
  344. if(GetPlayerInterior(playerid) == BInfo[i][bExteriorID] && GetPlayerVirtualWorld(playerid) == 0)
  345. {
  346. if(BInfo[i][bVIP] != 1 || PlayerInfo[playerid][pDonateRank] != 0)
  347. {
  348. if(BInfo[i][bLocked] == 0)
  349. {
  350. PlayerInfo[playerid][Inbuilding] = i;
  351. SetPlayerInterior( playerid, BInfo[i][bInteriorID]);
  352. SetPlayerVirtualWorld( playerid, BInfo[i][bVirWorld]);
  353. PlayerInfo[playerid][pVirtualWorld] = BInfo[i][bVirWorld];
  354. Pause(playerid);
  355. SetPlayerPos(playerid, BInfo[i][bInteriorX], BInfo[i][bInteriorY], BInfo[i][bInteriorZ]);
  356. if(BInfo[i][buRadio] >= 1 && strlen(BInfo[i][buRadioURL]))
  357. {
  358. StopAudioStreamForPlayer(playerid);
  359. PlayAudioStreamForPlayer(playerid, BInfo[i][buRadioURL]);
  360. }
  361. }
  362. else
  363. {
  364. GameTextForPlayer(playerid, "~r~Building is Locked!", 1000, 5);
  365. }
  366. }
  367. else
  368. {
  369. SendClientMessage(playerid, COLOR_GREY, " You are not a VIP!");
  370. }
  371. }
  372. }
  373. }
  374. for(new h = 0; h < sizeof(HQInfo); h++)
  375. {
  376. if(IsPlayerInRangeOfPoint(playerid,2.0,HQInfo[h][HQEnterX],HQInfo[h][HQEnterY],HQInfo[h][HQEnterZ]))
  377. {
  378. if(HQInfo[h][HQInsideX] == 0) return SendClientMessage(playerid, GREY, "HQ is not set up yet.");
  379. if(HQInfo[h][HQLocked]) return SendClientMessage(playerid, GREY, "HQ is locked.");
  380. SetPlayerVirtualWorld(playerid, h + 2000);
  381. SetPlayerPosEx(playerid, HQInfo[h][HQInsideX],HQInfo[h][HQInsideY],HQInfo[h][HQInsideZ]);
  382. SetPlayerInterior(playerid, HQInfo[h][HQInterior]);
  383. SetCameraBehindPlayer(playerid);
  384. }
  385. }
  386. if(IsPlayerInRangeOfPoint(playerid, 3, 1310.0685,-1367.6198,13.5382)) //Paintball Entrance
  387. {
  388. PaintballPlayers ++;
  389. PlayerPaintballing[playerid] = 1;
  390. new rand = random(sizeof(PaintballSpawns));
  391. SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
  392. SetCameraBehindPlayer(playerid);
  393. TogglePlayerControllable(playerid, 0);
  394. }
  395. //-----------------------------[Prison Entrances]------------------------//
  396. /*else if(IsPlayerInRangeOfPoint(playerid,2.0,1771.6210,-1547.4747,9.9129)) // Yard to Inside [Fun Time]
  397. {
  398. GameTextForPlayer(playerid,"~w~Objects Loading...",1000,5);
  399. Pause(playerid);
  400. SetPlayerVirtualWorld(playerid, 0);
  401. SetPlayerInterior(playerid, 0);
  402. SetPlayerPos(playerid,1852.0464,-1732.5062,5202.5859);
  403. }
  404. else if(IsPlayerInRangeOfPoint(playerid,2.0,1769.3439,-1549.8958,9.9112)) // Yard to Inside [Prisoining]
  405. {
  406. GameTextForPlayer(playerid,"~w~Objects Loading...",1000,5);
  407. Pause(playerid);
  408. SetPlayerVirtualWorld(playerid, 0);
  409. SetPlayerInterior(playerid, 0);
  410. SetPlayerPos(playerid,1864.7402,-1725.0553,5202.5859);
  411. }
  412. */
  413. else if(IsPlayerInRangeOfPoint(playerid,2.0,1797.4753,-1579.0033,14.0861)) // Outside Prison to Inside
  414. {
  415. GameTextForPlayer(playerid,"~w~Objects Loading..",1000,5);
  416. Pause(playerid);
  417. SetPlayerVirtualWorld(playerid, 0);
  418. SetPlayerInterior(playerid, 0);
  419. SetPlayerPos(playerid, 1862.0128,-1700.4945,5202.5859);
  420. }
  421. //-----------------------------[Prison Entrances]------------------------//
  422. else if(IsPlayerInRangeOfPoint(playerid,3.0,2755.3499,-2515.5325,13.6397)) // Gun Depot Enter Point
  423. {
  424. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  425. Pause(playerid);
  426. SetPlayerPos(playerid,2776.5386,-1492.2943,1066.2562);
  427. GameTextForPlayer(playerid, "~w~Gun Depot", 5000, 1);
  428. }
  429. else if(IsPlayerInRangeOfPoint(playerid,8.0,1765.7958,-1705.0437,13.4707)) // EMS new building
  430. {
  431. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  432. Pause(playerid);
  433. SetPlayerVirtualWorld(playerid, 101);
  434. SetPlayerInterior(playerid,16);
  435. SetPlayerPos(playerid,2046.1004638672,-1765.7945556641,767.94354248047);
  436. GameTextForPlayer(playerid, "~w~E.M.S building", 5000, 1);
  437. }
  438. else if(IsPlayerInRangeOfPoint(playerid,8.0,shax,shay,shaz)) //SHAMAL 1
  439. {
  440. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  441. Pause(playerid);
  442. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger has entered the shamal.");
  443. else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
  444. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  445. SetPlayerVirtualWorld(playerid, 1337);
  446. SetPlayerInterior(playerid,1);
  447. SetPlayerPos(playerid,2.57, 33.14, 1200);
  448. GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
  449. GivePlayerGun(playerid, 46);
  450. }
  451. else if(IsPlayerInRangeOfPoint(playerid,8.0,shbx,shby,shbz)) //SHAMAL 2
  452. {
  453. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  454. Pause(playerid);
  455. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger has entered the shamal.");
  456. else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
  457. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  458. SetPlayerVirtualWorld(playerid, 1338);
  459. SetPlayerInterior(playerid,1);
  460. SetPlayerPos(playerid,2.57, 33.14, 1200);
  461. GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
  462. GivePlayerGun(playerid, 46);
  463. }
  464. else if(IsPlayerInRangeOfPoint(playerid,8.0,shcx,shcy,shcz)) //SHAMAL 3
  465. {
  466. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  467. Pause(playerid);
  468. if(PlayerInfo[playerid][pMask] == 1) format(string, sizeof(string), "* Stranger has entered the shamal.");
  469. else format(string, sizeof(string), "* %s has entered the shamal.", sendername);
  470. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  471. SetPlayerVirtualWorld(playerid, 1339);
  472. SetPlayerInterior(playerid,1);
  473. SetPlayerPos(playerid,2.57, 33.14, 1200);
  474. GameTextForPlayer(playerid, "~w~Shamal", 5000, 1);
  475. GivePlayerGun(playerid, 46);
  476. }
  477. /*
  478. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2873.03,-2041.66,11.10)) //V.I.P Lounge
  479. {
  480. if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP.");
  481. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  482. Pause(playerid);
  483. SetPlayerInterior(playerid, 10);
  484. SetPlayerPos(playerid, 2876.15,-2041.59,11.07);///gotoint 0 2365.81640625 -1706.4645996094 1195.7257080078 OLD ONE
  485. GameTextForPlayer(playerid, "~b~V.I.P Lounge", 3000, 1);
  486. }*/
  487. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1498.3635,-1580.5297,13.5498)) //Italian Resturant
  488. {
  489. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  490. Pause(playerid);
  491. SetPlayerInterior(playerid, 4);
  492. SetPlayerPos(playerid, 1564.7557373047,-1730.5688476563,1125.6225585938);
  493. GameTextForPlayer(playerid, "~w~The Italian Resturant", 3000, 1);
  494. }
  495. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 328.2883,-1923.6836,1.4061)) //Santa Maria Resturant
  496. {
  497. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  498. Pause(playerid);
  499. SetPlayerInterior(playerid, 1);
  500. SetPlayerPos(playerid, -794.806396,497.738037,1376.195312);
  501. GameTextForPlayer(playerid, "~w~Santa Maria Resturant", 3000, 1);
  502. }*/
  503. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1587.0557,-1730.1108,1441)) // Hall To Jails 2
  504. {
  505. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  506. Pause(playerid);
  507. SetPlayerInterior(playerid, 5);
  508. SetPlayerPos(playerid, 1587.4763,-1728.4971,1441);
  509. GameTextForPlayer(playerid, "~w~Detention Facility", 3000, 1);
  510. }
  511. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1588.2921,-1745.8655,1441.2000)) // Prison Reception
  512. {
  513. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  514. Pause(playerid);
  515. SetPlayerInterior(playerid, 5);
  516. SetPlayerPos(playerid, 1589.6949,-1744.9985,1441.2000);
  517. GameTextForPlayer(playerid, "~w~Prison Reception", 3000, 1);
  518. }
  519. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -5.2309,-325.4293,5.4297)) // Prison Store
  520. {
  521. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  522. Pause(playerid);
  523. SetPlayerInterior(playerid, 0);
  524. SetPlayerPos(playerid, 209.8902,-152.7066,-89.7323);
  525. GameTextForPlayer(playerid, "~w~Prison Store", 3000, 1);
  526. }
  527. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -30.8378,-361.3748,5.4297)) // Control Room
  528. {
  529. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  530. Pause(playerid);
  531. SetPlayerInterior(playerid, 0);
  532. SetPlayerPos(playerid, -27.0908,-379.4108,14.9761);
  533. GameTextForPlayer(playerid, "~w~Control Room", 3000, 1);
  534. }
  535. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -107.5323,-219.7949,2.0466)) // Another Infim.
  536. {
  537. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  538. Pause(playerid);
  539. SetPlayerInterior(playerid, 0);
  540. SetPlayerPos(playerid, 1148.3007,-1318.3501,1023.7019);
  541. GameTextForPlayer(playerid, "~w~Infirmary Two", 3000, 1);
  542. }
  543. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -5.2309,-325.4293,5.4297)) // Prison Store
  544. {
  545. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  546. Pause(playerid);
  547. SetPlayerInterior(playerid, 5);
  548. SetPlayerPos(playerid, 209.8902,-152.7066,-89.7323);
  549. GameTextForPlayer(playerid, "~w~Prison Store", 3000, 1);
  550. }
  551. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1581.6827,-1730.2046,1441.2000)) // From Prison Hall to Jails
  552. {
  553. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  554. Pause(playerid);
  555. SetPlayerInterior(playerid, 5);
  556. SetPlayerPos(playerid, 1581.0818,-1728.5902,1441.1000);
  557. GameTextForPlayer(playerid, "~w~Detention Facility", 3000, 1);
  558. }
  559. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2233.2905,-1159.6998,25.8906)) // Jefferson Motel
  560. {
  561. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  562. Pause(playerid);
  563. SetPlayerInterior(playerid, 15);
  564. SetPlayerPos(playerid, 2215.454833,-1147.475585,1025.796875);
  565. GameTextForPlayer(playerid, "~w~Jefferson Motel", 3000, 1);
  566. }
  567. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1547.3805,-1269.3496,17.4063)) // Tommy's Apartment
  568. {
  569. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  570. Pause(playerid);
  571. SetPlayerInterior(playerid, 0);
  572. SetPlayerPos(playerid, 1591.90002441,-1239.90002441,221.10000610);
  573. GameTextForPlayer(playerid, "~w~Tommy's Apartment", 3000, 1);
  574. }*/
  575. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1833.8832,-1125.6548,24.6721)) // v.i.p Garage
  576. {
  577. if(PlayerInfo[playerid][pDonateRank] < 1) return SendClientMessage(playerid,COLOR_RED,"You're not VIP.");
  578. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  579. Pause(playerid);
  580. SetPlayerPos(playerid, 2483.8914,2377.5178,7.5434);
  581. SetPlayerInterior(playerid, 0);
  582. GameTextForPlayer(playerid, "~b~ V.I.P Garage", 3000, 1);
  583. }
  584. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1720.31,-1740.75,13.54)) // Royal Church Main Door
  585. {
  586. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  587. Pause(playerid);
  588. SetPlayerInterior(playerid, 0);
  589. SetPlayerPos(playerid, -2025.0823,1143.2609,18.0688);
  590. GameTextForPlayer(playerid, "~w~Los Santos Royal Church", 3000, 1);
  591. }
  592. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -2024.87,1143.05,18.06)) // Royal Church Main Door exit
  593. {
  594. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  595. Pause(playerid);
  596. SetPlayerInterior(playerid, 0);
  597. SetPlayerPos(playerid, 1720.31,-1740.75,13.54);
  598. GameTextForPlayer(playerid, "~w~Exiting", 3000, 1);
  599. }
  600. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2139.1563,-1742.7773,13.5524)) // Ganton Sex Shop
  601. {
  602. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  603. Pause(playerid);
  604. SetPlayerInterior(playerid, 3);
  605. SetPlayerPos(playerid, -100.3464,-24.8610,1000.7188);
  606. GameTextForPlayer(playerid, "~w~Ganton Sex Shop", 3000, 1);
  607. }*/
  608. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1524.4841,-1677.8577,6.2188)) // LSPD Training Place Enter
  609. {
  610. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  611. Pause(playerid);
  612. SetPlayerInterior(playerid, 0);
  613. SetPlayerPos(playerid, 2195.96875,-1890.1411132813,903.56622314453);
  614. GameTextForPlayer(playerid, "~b~L.S.P.D Training Range", 3000, 1);
  615. }
  616. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2034.1747,-1401.6726,17.2948)) // County Hospital
  617. {
  618. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  619. Pause(playerid);
  620. SetPlayerInterior(playerid, 17);
  621. SetPlayerPos(playerid, 2403.6315917969,-1873.8382568359,977.00183105469);
  622. GameTextForPlayer(playerid, "~w~County Hospital", 3000, 1);
  623. }
  624. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2045.0454,-1913.2452,13.5469)) // DMV
  625. {
  626. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  627. Pause(playerid);
  628. SetPlayerInterior(playerid, 3);
  629. SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875);
  630. GameTextForPlayer(playerid, "~w~Department Of Motor Vehicles", 3000, 1);
  631. }
  632. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1333.4658,-1864.3909,13.5469)) // 2 Dragons Strip Club
  633. {
  634. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  635. Pause(playerid);
  636. SetPlayerInterior(playerid, 3);
  637. SetPlayerPos(playerid, -2637.0388,1402.2401,906.4609);
  638. GameTextForPlayer(playerid, "~r~Two Dragons Strip Club", 3000, 1);
  639. }*/
  640. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 389.4164,-1162.6322,1227.8639)) // FBI Elevator which leads to Second Floor
  641. {
  642. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  643. Pause(playerid);
  644. SetPlayerInterior(playerid, 17);
  645. SetPlayerPos(playerid, 391.95086669922,-1159.1645507813,1235.4501953125);
  646. GameTextForPlayer(playerid, "~r~F.B.I - Second Floor", 3000, 1);
  647. }
  648. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 393.1075,-1162.8607,1227.8639)) // FBI Elevator which leads to Prisons Floor
  649. {
  650. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  651. Pause(playerid);
  652. SetPlayerInterior(playerid, 17);
  653. SetPlayerPos(playerid, 397.96765136719,-1166.8763427734,1224.2651367188);
  654. GameTextForPlayer(playerid, "~r~F.B.I - Prisons Floor", 3000, 1);
  655. }
  656. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2070.8240,-1793.8846,13.5533)) // Barber
  657. {
  658. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  659. Pause(playerid);
  660. SetPlayerInterior(playerid, 3);
  661. SetPlayerPos(playerid, 418.652984,-82.639793,1001.804687);
  662. GameTextForPlayer(playerid, "~w~The Barber", 3000, 1);
  663. }
  664. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2508.3833,-2205.7219,13.5469)) // Drug Depot Enter from Outside
  665. {
  666. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  667. Pause(playerid);
  668. SetPlayerInterior(playerid, 3);
  669. SetPlayerPos(playerid, 2203.7878,-1817.9066,960.5386);
  670. GameTextForPlayer(playerid, "~w~The Drug Depot", 3000, 1);
  671. }
  672. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2206.0955,-1821.6783,943.1324)) // Drug Depot Enter from Bottom
  673. {
  674. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  675. Pause(playerid);
  676. SetPlayerInterior(playerid, 3);
  677. SetPlayerPos(playerid, 2250.0303,-1791.3995,915.8544);
  678. }
  679. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2312.1548,-1508.6281,26.8438)) // Los Santos Royal Church Interior
  680. {
  681. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  682. Pause(playerid);
  683. SetPlayerInterior(playerid, 3);
  684. SetPlayerPos(playerid, -2001.2556,1096.8164,18.8574);
  685. GameTextForPlayer(playerid, "~w~Los Santos Royal Church", 3000, 1);
  686. }*/
  687. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2253.9475,-1333.1809,23.9815)) // Los Santos Church Main Door
  688. {
  689. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  690. Pause(playerid);
  691. SetPlayerInterior(playerid, 6);
  692. SetPlayerPos(playerid, 178.60601806641,-100.326538085942,1029.4976806641);
  693. GameTextForPlayer(playerid, "~w~Los Santos Church", 3000, 1);
  694. }
  695. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1658.4365,-1691.3781,15.6094)) // FBI Door from Garage Which lead to Prisons
  696. {
  697. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  698. Pause(playerid);
  699. SetPlayerInterior(playerid, 3);
  700. SetPlayerPos(playerid, 385.09,-1154.54,1223.66);
  701. GameTextForPlayer(playerid, "~w~F.B.I Department", 3000, 1);
  702. }
  703. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1654.0979,-1655.1139,22.5156)) // FBI Door from Roof Which lead to Second Floor
  704. {
  705. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  706. Pause(playerid);
  707. SetPlayerInterior(playerid, 3);
  708. SetPlayerPos(playerid, 357.4144,-1166.8655,1234.8639);
  709. GameTextForPlayer(playerid, "~w~F.B.I Department", 3000, 1);
  710. }
  711. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2421.5442,-1219.2491,25.5612)) // PigPen
  712. {
  713. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  714. Pause(playerid);
  715. SetPlayerInterior(playerid, 2);
  716. SetPlayerPos(playerid, 1204.809936,-11.586799,1000.921875);
  717. GameTextForPlayer(playerid, "~r~The PigPen", 3000, 1);
  718. }*/
  719. else if(IsPlayerInRangeOfPoint(playerid, 3.0, -86.0714,-299.3637,2.7646)) // Director Office of Prison
  720. {
  721. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  722. Pause(playerid);
  723. SetPlayerInterior(playerid, 0);
  724. SetPlayerPos(playerid, -220.3469,-251.2590,8.4680);
  725. GameTextForPlayer(playerid, "~r~Director's Office", 3000, 1);
  726. }
  727. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2068.5889,-1779.9105,13.5596)) // Tatto
  728. {
  729. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  730. Pause(playerid);
  731. SetPlayerInterior(playerid, 16);
  732. SetPlayerPos(playerid, -204.439987,-26.453998,1002.273437);
  733. GameTextForPlayer(playerid, "~r~Tatto Shop", 3000, 1);
  734. }
  735. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1742.9120,-1943.8079,13.5689)) // Unity Station from train to inside
  736. {
  737. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  738. Pause(playerid);
  739. SetPlayerInterior(playerid, 17);
  740. SetPlayerPos(playerid, -1973.2489,168.5225,539.0989);
  741. GameTextForPlayer(playerid, "~w~Unity Station", 3000, 1);
  742. }
  743. /*else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2310.0693,-1643.5203,14.8270)) // Ten Green Bottles
  744. {
  745. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  746. Pause(playerid);
  747. SetPlayerInterior(playerid, 11);
  748. SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
  749. GameTextForPlayer(playerid, "~w~Ten Green Bottles", 3000, 1);
  750. }
  751. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1296.4255,-1424.8632,14.9531)) // Bar near PB
  752. {
  753. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  754. Pause(playerid);
  755. SetPlayerInterior(playerid, 1);
  756. SetPlayerPos(playerid, 1358.6835,-488.1862,650.7677);
  757. GameTextForPlayer(playerid, "~w~Two Elephants Resturant", 3000, 1);
  758. }
  759. else if(IsPlayerInRangeOfPoint(playerid, 3.0,2105.4717,-1806.5591,13.5547)) // Pizza Stack
  760. {
  761. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  762. Pause(playerid);
  763. SetPlayerInterior(playerid, 5);
  764. SetPlayerPos(playerid, 372.2533,-133.3005,1001.4922);
  765. GameTextForPlayer(playerid, "~w~Pizza Stack", 3000, 1);
  766. }
  767. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2487.7549,2397.2488,4.2109)) //VIP Garage to lounge / lounge to garge
  768. {
  769. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  770. Pause(playerid);
  771. SetPlayerPos(playerid, 2417.8186,-1705.3455,1195.0190);
  772. SetPlayerInterior(playerid, 10);
  773. GameTextForPlayer(playerid,"~b~V.I.P Lounge", 3000, 1);
  774. }*/
  775. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 2257.35,-71.02,31.60)) //HITMAN
  776. {
  777. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  778. Pause(playerid);
  779. SetPlayerPos(playerid, 3210.75,714.29,1014.14);
  780. SetPlayerInterior(playerid, 10);
  781. GameTextForPlayer(playerid,"~b~Hitman HQ", 3000, 1);
  782. }
  783. else if(IsPlayerInRangeOfPoint(playerid, 2.5, -572.08,-1498.06,9.54)) //SS
  784. {
  785. if(IsAnAgent(playerid))
  786. {
  787. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  788. Pause(playerid);
  789. SetPlayerPos(playerid, 2145.3159,1597.3687,1003.9677);
  790. SetPlayerInterior(playerid, 1);
  791. GameTextForPlayer(playerid,"~w~ The Secret Service", 3000, 1);
  792. }
  793. else
  794. {
  795. SendClientMessage(playerid, COLOR_GREY,"You are not a Member of the Secret Service Orgnization");
  796. return 1;
  797. }
  798. }
  799. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1769.8843,-1867.9167,13.5696)) //Unity Station People Entrance
  800. {
  801. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  802. Pause(playerid);
  803. SetPlayerPos(playerid, -2007.7353515625,176.60624694824,540.34661865234);
  804. SetPlayerInterior(playerid, 15);
  805. GameTextForPlayer(playerid,"~w~Unity Station", 3000, 1);
  806. }
  807. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1752.4977,-1894.1453,13.5574)) //Unity Station Workers Entrance
  808. {
  809. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  810. Pause(playerid);
  811. SetPlayerPos(playerid, -1961.6540527344,164.9091796875,546.71893310547);
  812. SetPlayerInterior(playerid, 15);
  813. GameTextForPlayer(playerid,"~w~Unity Station", 3000, 1);
  814. }
  815. else if(IsPlayerInRangeOfPoint(playerid, 5.0, 2229.7354,-1721.5267,13.5639)) //Gym
  816. {
  817. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  818. Pause(playerid);
  819. SetPlayerPos(playerid, 772.111999,-3.898649,1000.728820);
  820. SetPlayerInterior(playerid, 5);
  821. GameTextForPlayer(playerid,"~w~Los Santos Gym", 3000, 1);
  822. }
  823. /*else if(IsPlayerInRangeOfPoint(playerid, 2.5, 1786.9857,-1720.8442,13.5426)) // Chinese Resturant
  824. {
  825. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  826. Pause(playerid);
  827. SetPlayerPos(playerid, 1026.8576660156,-1309.5942382813,-20.835353851318);
  828. SetPlayerInterior(playerid, 6);
  829. GameTextForPlayer(playerid,"~w~China Resturant", 3000, 1);
  830. }*/
  831. else if(IsPlayerInRangeOfPoint(playerid,3.0,626.9654,-571.7671,17.9207)) //SASD
  832. {
  833. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  834. Pause(playerid);
  835. SetPlayerInterior(playerid, 5);
  836. SetPlayerPos(playerid, 322.2817,303.3415,999.1484);
  837. SetPlayerFacingAngle( playerid, 0.0000);
  838. GameTextForPlayer(playerid, "~w~S.A.S.D", 5000, 1);
  839. PlayerInfo[playerid][pInt] = 5;
  840. SetCameraBehindPlayer(playerid);
  841. }
  842. else if(IsPlayerInRangeOfPoint(playerid,3.0,1676.8248,-1634.7830,14.2266)) //FBI building
  843. {
  844. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  845. Pause(playerid);
  846. SetPlayerInterior(playerid, 10);
  847. SetPlayerPos(playerid, 367.62509155273,-1149.8499755859,1228.7457275391);
  848. SetPlayerFacingAngle(playerid, 0.0000);
  849. GameTextForPlayer(playerid, "~w~Federal Bureau of Investigation", 5000, 1);
  850. PlayerInfo[playerid][pInt] = 10;
  851. SetCameraBehindPlayer(playerid);
  852. }
  853. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1601.9219,-2157.7139,13.7401)) //FIRE DEPARTMENT ENTERANCE
  854. {
  855. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  856. Pause(playerid);
  857. SetPlayerInterior(playerid, 3);
  858. SetPlayerPos(playerid, 368.0984,162.2898,1019.9844);
  859. PlayerInfo[playerid][pInt] = 3;
  860. GameTextForPlayer(playerid, "~r~E.M.S HeadQuarters", 5000, 1);
  861. SetPlayerFacingAngle(playerid, 90.0);
  862. SetCameraBehindPlayer(playerid);
  863. }
  864. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6975, -1325.3914, 15.4019)) //HOSPITAL GROUND ENTER (NEW)
  865. {
  866. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  867. Pause(playerid);
  868. SetPlayerInterior(playerid, 1);
  869. SetPlayerPos(playerid, 1199.0801,-1366.3083,1017.8790);
  870. PlayerInfo[playerid][pInt] = 1;
  871. GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1);
  872. SetPlayerFacingAngle(playerid, 271.3973);
  873. SetCameraBehindPlayer(playerid);
  874. }
  875. else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1154.5345, -1343.6583, 26.6953)) //HOSPITAL ROOF ENTER (NEW)
  876. {
  877. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  878. Pause(playerid);
  879. SetPlayerInterior(playerid, 1);
  880. SetPlayerPos(playerid, 1216.2145,-1379.2618,1029.4714);
  881. PlayerInfo[playerid][pInt] = 1;
  882. GameTextForPlayer(playerid, "~r~All Saints ~n~~w~Medical Center", 5000, 1);
  883. SetPlayerFacingAngle(playerid, 1.0922);
  884. SetCameraBehindPlayer(playerid);
  885. }
  886. else if(IsPlayerInRangeOfPoint(playerid, 3, 1568.6840,-1691.0090,5.8906)) //Garage-LSPD Enterance
  887. {
  888. if(IsACop(playerid))
  889. {
  890. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  891. Pause(playerid);
  892. SetPlayerInterior(playerid, 6);
  893. SetPlayerPos(playerid,246.4211,87.0546,1003.6406);
  894. SetCameraBehindPlayer(playerid);
  895. GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1);
  896. SetPlayerFacingAngle(playerid, 180.0000);
  897. PlayerInfo[playerid][pInt] = 6;
  898. }
  899. }
  900. /* else if(IsPlayerInRangeOfPoint(playerid, 3, 1564.8468,-1666.1549,28.3956)) //LSPD Roof-LSPD Enterance
  901. {
  902. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  903. Pause(playerid);
  904. SetPlayerInterior(playerid, 6);
  905. SetPlayerPos(playerid,242.7468,66.3155,1003.6406);
  906. SetCameraBehindPlayer(playerid);
  907. GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1);
  908. SetPlayerFacingAngle(playerid, 270.0);
  909. PlayerInfo[playerid][pInt] = 6;
  910. }*/
  911. else if(IsPlayerInRangeOfPoint(playerid, 3, 1554.5262,-1675.7283,16.1953)) //LSPD enter
  912. {
  913. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  914. Pause(playerid);
  915. SetPlayerPos(playerid,246.7284,62.6640,1003.6406);
  916. SetCameraBehindPlayer(playerid);
  917. GameTextForPlayer(playerid, "~w~Los Santos~n~~r~Police Department", 5000, 1);
  918. SetPlayerFacingAngle(playerid, 90.0000);
  919. SetPlayerInterior(playerid, 6);
  920. PlayerInfo[playerid][pInt] = 6;
  921. }
  922. else if(IsPlayerInRangeOfPoint(playerid, 3, 2447.8350,-1962.6876,13.5469)) //Los Santos Export Depot
  923. {
  924. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  925. Pause(playerid);
  926. SetPlayerPos(playerid,2573.0928,-1302.0148,1044.1250);
  927. SetCameraBehindPlayer(playerid);
  928. PlayerInfo[playerid][pInt] = 2;
  929. SetPlayerInterior(playerid, 2);
  930. GameTextForPlayer(playerid, "~w~Los Santos ~n~Export Depot building", 5000, 1);
  931. SetPlayerFacingAngle(playerid, 270.0000);
  932. }
  933. /*else if(IsPlayerInRangeOfPoint(playerid,3.0,1038.2180,-1340.5763,13.7432)) //Donut Store
  934. {
  935. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  936. Pause(playerid);
  937. SetPlayerInterior(playerid, 17);
  938. SetPlayerPos(playerid, 377.1611,-191.6544,1000.6328);
  939. SetPlayerFacingAngle(playerid, 0.0000);
  940. GameTextForPlayer(playerid, "~w~Jim's Sticky Ring", 5000, 1);
  941. PlayerInfo[playerid][pInt] = 17;
  942. SetCameraBehindPlayer(playerid);
  943. }*/
  944. else if(IsPlayerInRangeOfPoint(playerid,3.0,1481.0209,-1770.9374,18.7958)) //City Hall
  945. {
  946. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  947. Pause(playerid);
  948. SetPlayerInterior(playerid, 3);
  949. SetPlayerPos(playerid, 384.5713,173.6477,1008.3828);
  950. SetPlayerFacingAngle(playerid, 90.0000);
  951. GameTextForPlayer(playerid, "~w~ City Hall", 5000, 1);
  952. PlayerInfo[playerid][pInt] = 3;
  953. SetCameraBehindPlayer(playerid);
  954. }
  955. /*else if(IsPlayerInRangeOfPoint(playerid,3.0, 1244.7333, 205.3294, 19.6454)) // Donut Store Enterance
  956. {
  957. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  958. Pause(playerid);
  959. SetPlayerVirtualWorld(playerid, 3);
  960. SetPlayerInterior(playerid, 17);
  961. SetPlayerPos(playerid, 377.1611,-191.6544,1000.6328);
  962. SetPlayerFacingAngle(playerid, 0.0000);
  963. PlayerInfo[playerid][pInt] = 17;
  964. PlayerInfo[playerid][pVirtualWorld] = 3;
  965. GameTextForPlayer(playerid, "~w~Montgomery ~n~~r~Cafe", 5000, 1);
  966. SetCameraBehindPlayer(playerid);
  967. }*/
  968. else if(IsPlayerInRangeOfPoint(playerid,3.0, -13.0313,-335.9020,5.4297)) // Cafeteria Enterance
  969. {
  970. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  971. Pause(playerid);
  972. SetPlayerInterior(playerid, 4);
  973. SetPlayerPos(playerid, 459.2668, -88.6474, 999.5547);
  974. SetPlayerFacingAngle(playerid, 89.9299);
  975. PlayerInfo[playerid][pInt] = 4;
  976. GameTextForPlayer(playerid, "~w~Cafeteria", 5000, 1);
  977. SetCameraBehindPlayer(playerid);
  978. }
  979. else if(IsPlayerInRangeOfPoint(playerid,3.0,-174.2122,-247.5509,1.4297)) //Infirmary
  980. {
  981. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  982. Pause(playerid);
  983. SetPlayerPos(playerid, 268.7222,1862.8405,8.7578);
  984. GameTextForPlayer(playerid, "~w~Infirmary One", 5000, 1);
  985. SetPlayerFacingAngle(playerid, 180.0);
  986. SetCameraBehindPlayer(playerid);
  987. }
  988. else if(IsPlayerInRangeOfPoint(playerid,3.0,-49.8847,-269.3661,6.6332)) //Doc building
  989. {
  990. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  991. Pause(playerid);
  992. SetPlayerInterior(playerid, 18);
  993. SetPlayerPos(playerid, -202.2018,-204.9514,14.0696);
  994. GameTextForPlayer(playerid, "~w~Department of Correction", 5000, 1);
  995. SetPlayerFacingAngle(playerid, 90.0000);
  996. PlayerInfo[playerid][pInt] = 18;
  997. SetCameraBehindPlayer(playerid);
  998. }
  999. else if(IsPlayerInRangeOfPoint(playerid,3.0,2695.6235,-1704.6960,11.8438))
  1000. {
  1001. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  1002. Pause(playerid);
  1003. SetPlayerInterior(playerid,7);
  1004. SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
  1005. GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
  1006. PlayerInfo[playerid][pInt] = 7;
  1007. }
  1008. else if(IsPlayerInRangeOfPoint(playerid,8.0,-2111.5686,-443.9720,38.7344))
  1009. {
  1010. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  1011. Pause(playerid);
  1012. SetPlayerInterior(playerid,4);
  1013. SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
  1014. GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track", 5000, 1);
  1015. PlayerInfo[playerid][pInt] = 4;
  1016.  
  1017. }
  1018. else if(IsPlayerInRangeOfPoint(playerid,8.0,-2080.3079,-406.0309,38.7344))
  1019. {
  1020. GameTextForPlayer(playerid,"~w~Objects Loading....",1000,5);
  1021. Pause(playerid);
  1022. SetPlayerInterior(playerid,14);
  1023. SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
  1024. GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track", 5000, 1);
  1025. PlayerInfo[playerid][pInt] = 14;
  1026. }
  1027. }
  1028. return 1;
  1029. }
Add Comment
Please, Sign In to add comment