Deniiii

/enter

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