Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.65 KB | None | 0 0
  1.  
  2. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
  3. new string[180];
  4. new engine,lights,alarm,doors,bonnet,boot,objective;
  5.  
  6. if(newkeys & KEY_SECONDARY_ATTACK) {
  7. enter_apartament(playerid);
  8. if(IsPlayerInRangeOfPoint(playerid,6.0,1959.4673,1017.9394,993.4293)) {
  9. if(RouletteInGame[playerid] == 1) return SCM(playerid,-1,"Deja joci la ruleta.");
  10. for(new t; t<20; t++) if(t != 15) TextDrawShowForPlayer(playerid,CasinoDraw[t]);
  11. SelectTextDrawEx(playerid,0xFFFFFFFF),RouletteInGame[playerid] = 1;
  12. update_ruleta(playerid);
  13. zmidialog[playerid] = 0;
  14. }
  15.  
  16. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
  17. new car = GetClosestVehicle(playerid);
  18. if(car != INVALID_VEHICLE_ID && IsPlayerNearVehicle(playerid,car,5)) {
  19. for(new i = 0; i < 10; i++) {
  20. if(PlayerInfo[playerid][pCarKey][i] != 0) {
  21. if(CarInfo[PlayerInfo[playerid][pCarKey][i]][Spawned] == car) SetVehicleParamsForPlayer(car, playerid, 0, 0);
  22. }
  23. }
  24. }
  25. if(UsedFly[playerid] == 1) {
  26. StopFly(playerid);
  27. UsedFly[playerid] = 0;
  28. SetPlayerHealthEx(playerid, 99);
  29. SendClientMessage(playerid, 0xFFADADFF, "Fly mode off.");
  30. }
  31.  
  32. for(new i = 1; i < 15; i++) {
  33. if(PlayerToPoint(2.0, playerid, DynamicFactions[i][extX], DynamicFactions[i][extY], DynamicFactions[i][extZ])) {
  34. if(PlayerInfo[playerid][pMember] == i || i < 3 || DynamicFactions[i][fLock] == 1 || OnDuty[playerid] == 1) EnterFaction(playerid, i);
  35. }
  36. }
  37.  
  38. for(new i = 1; i < 15; i++) {
  39. if(PlayerToPoint(2.0, playerid, DynamicFactions[i][fcX], DynamicFactions[i][fcY], DynamicFactions[i][fcZ])) {
  40. if(DynamicFactions[i][fVW] == GetPlayerVirtualWorld(playerid) && DynamicFactions[i][fInterior] == GetPlayerInterior(playerid)) ExitFaction(playerid, i);
  41. }
  42. }
  43.  
  44. if(IsPlayerConnected(playerid)) {
  45. for(new i = 1; i < sizeof(HouseInfo); i++) {
  46. if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
  47. {
  48. if(InEvent[playerid] == 1) return 1;
  49. if(InWar[PlayerInfo[playerid][pMember]] == 1) return SCM(playerid, COLOR_LIGHTRED, "Eroare: Nu poti intra intr-o locuinta in timpul war-ului!");
  50. if(PlayerInfo[playerid][pHouse] == i || HouseInfo[i][hLock] == 0 || OnDuty[playerid] == 1 || PlayerHit[playerid] != -1) {
  51. if(GetPVarInt(playerid, "LocationEnter") > gettime()) return SCMf(playerid, COLOR_LGREEN, "Please wait %d seconds!", GetPVarInt(playerid, "LocationEnter") - gettime());
  52. SetPlayerPosEx(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
  53. SetPlayerInterior(playerid,HouseInfo[i][hInterior]);
  54. PlayerInfo[playerid][pInt] = HouseInfo[i][hInterior];
  55. PlayerInfo[playerid][pLocal] = i;
  56. SetPlayerVirtualWorld(playerid,HouseInfo[i][hVirtual]);
  57. InHouse[playerid] = i;
  58. SetPVarInt(playerid, "LocationEnter", gettime() + 10);
  59. HouseRadio(playerid, i);
  60. }
  61. else GameTextForPlayer(playerid, "~r~~h~Inchis", 1000, 1);
  62. }
  63. }
  64. for(new i = 1; i < sizeof(BizzInfo); i++) {
  65. if(IsPlayerInRangeOfPoint(playerid,2,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) && BizzInfo[i][bStatic] == 0) {
  66. if(GetPVarInt(playerid, "LocationEnter") > gettime()) return SCMf(playerid, COLOR_LGREEN, "Please wait %d seconds!", GetPVarInt(playerid, "LocationEnter") - gettime());
  67. if(InWar[PlayerInfo[playerid][pMember]] == 1) return SCM(playerid, COLOR_LIGHTRED, "Eroare: Nu poti intra intr-o afacere in timpul war-ului!");
  68. if(GetPlayerCash(playerid) < BizzInfo[i][bFee]) return GameTextForPlayer(playerid, "~r~~h~Nu ai destui bani", 1000, 1);
  69. if(OnDuty[playerid] == 1 || PlayerHit[playerid] != -1) { }
  70. else if(BizzInfo[i][bLocked] == 1) return GameTextForPlayer(playerid, "~r~~h~Inchis", 1000, 1);
  71. if(BizzInfo[i][bType] == 6) {
  72. //if(HaveFish[playerid] != 0) ShowPlayerDialog(playerid, DIALOG_FISH, DIALOG_STYLE_MSGBOX, "Vinde pestele:", "Vrei sa vinzi pestele in acest magazin?", "Da", "Nu");
  73. if(HaveFish[playerid] != 0){
  74. ShowPlayerDialog(playerid, DIALOG_FISH, DIALOG_STYLE_MSGBOX, "Vinde pestele:", "Vrei sa vinzi pestele in acest magazin?", "Da", "Nu");
  75. }
  76. }
  77. if(BizzInfo[i][bType] == 1) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /withdraw, /transfer, /deposit");
  78. if(BizzInfo[i][bType] == 9) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /dice, /minesweeper.");
  79. if(BizzInfo[i][bType] == 8 || BizzInfo[i][bType] == 21) {
  80. SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /eat.");
  81. if(BizzInfo[i][bType] == 8) {
  82. if(KG[playerid] != 0) {
  83. GiveJobSalary(playerid);
  84. DisablePlayerCheckpointEx(playerid);
  85. CP[playerid] = 0;
  86. GunoiKG[playerid] = 0;
  87. KG[playerid] = 0;
  88. PlayerInfo[playerid][pFarmerSkill] ++;
  89. Update(playerid, pFarmerSkillx);
  90. for(new m; m < 2; m++) {
  91. if(PlayerInfo[playerid][pDailyMission][m] == 4) CheckMission(playerid, m);
  92. }
  93. DestroyVehicle(JobVehicle[playerid]);
  94. JobVehicle[playerid] = 0, JobWorking[playerid] = 0;
  95. PlayerTextDrawHide(playerid, JobTD);
  96. }
  97. }
  98. }
  99. if(BizzInfo[i][bType] == 2) SCM(playerid,COLOR_WHITE,"Press Y in front of the NPC.");
  100. if(BizzInfo[i][bType] == 3) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /drink.");
  101. if(BizzInfo[i][bType] == 5) SCM(playerid,COLOR_WHITE,"Press Y in front of the NPC.");
  102. if(BizzInfo[i][bType] == 6 || BizzInfo[i][bType] == 20) SCM(playerid,COLOR_WHITE,"Press Y in front of the NPC.");
  103. if(BizzInfo[i][bType] == 7) SCM(playerid,COLOR_WHITE,"Comenzi disponibile: /clothes, /glasses, /buyhat, /accs.");
  104. SetPVarInt(playerid, "LocationEnter", gettime() + 10);
  105. GivePlayerCash(playerid,-BizzInfo[i][bFee]);
  106. BizzInfo[i][bBalance] += BizzInfo[i][bFee];
  107. BizzRadio(playerid, i);
  108. if(BizzInfo[i][bStatic] == 0) {
  109. SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
  110. SetPlayerPosEx(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
  111. PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
  112. PlayerInfo[playerid][pLocal] = i+99;
  113. SetPlayerVirtualWorld(playerid,BizzInfo[i][bVirtual]);
  114. InBussines[playerid] = i;
  115. Update(playerid, pCashx);
  116. new str1[184];
  117. format(str1,sizeof(str1),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[i][bBalance],i);
  118. mysql_query(SQL,str1);
  119. format(str1, sizeof(str1), "~r~-$%d", BizzInfo[i][bFee]);
  120. GameTextForPlayer(playerid, str1, 1000, 1);
  121. }
  122. }
  123. }
  124. for(new i = 1; i < sizeof(HouseInfo); i++) {
  125. if(EditHouse[playerid] != 0) return 1;
  126. if(PlayerInfo[playerid][pSleeping] == 1) return 1;
  127. if(PlayerToPoint(2, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && HouseInfo[i][hVirtual] == GetPlayerVirtualWorld(playerid)) {
  128. SetPlayerVirtualWorld(playerid,0);
  129. SetPlayerInterior(playerid,0);
  130. SetPlayerPosEx(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
  131. InHouse[playerid] = -1;
  132. PlayRadio[playerid] = 0;
  133. StopAudioStreamForPlayer(playerid);
  134. }
  135. }
  136. for(new i = 1; i < sizeof(BizzInfo); i++) {
  137. if(PlayerInfo[playerid][pSleeping] == 1) return 1;
  138. if(PlayerToPoint(2, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]) && BizzInfo[i][bVirtual]==GetPlayerVirtualWorld(playerid)) {
  139. SetPlayerInterior(playerid,0);
  140. SetPlayerPosEx(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
  141. if(i == 27) {
  142. TogglePlayerControllable(playerid, 0);
  143. SetTimerEx("UnFreezeStation", 1000, false, "i", playerid);
  144. }
  145. PlayerInfo[playerid][pLocal] = 255;
  146. SetPlayerVirtualWorld(playerid,0);
  147. InBussines[playerid] = -1;
  148. PlayRadio[playerid] = 0;
  149. StopAudioStreamForPlayer(playerid);
  150. }
  151. }
  152. for(new i; i < sizeof(Training); i++) {
  153. if(PlayerToPoint(2.0, playerid, Training[i][0], Training[i][1], Training[i][2]) && PlayerInfo[playerid][pMember] == i+1) {
  154. if(PlayerInfo[playerid][pWantedLevel] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti intra deoarece ai wanted!");
  155. SetPlayerPosEx(playerid, 1062.1185, 2077.5059, 10.8352);
  156. SetPlayerVirtualWorld(playerid, i+1);
  157. SetPlayerInterior(playerid, 0);
  158. SCM(playerid, COLOR_YELLOW, "Bine ai venit in sala de antrenament! Daca vrei sa achizitionezi arme, foloseste comanda /guns.");
  159. InTraining[playerid] = 1;
  160. SetPVarInt(playerid, "Training", i);
  161. }
  162. }
  163. if(PlayerToPoint(3.0, playerid, 2337.1826, 2458.7441, 14.9921) && GetPlayerVirtualWorld(playerid) == 0) {
  164. if(IsACop(playerid)) SetPlayerPosEx(playerid, 2280.0898, 2458.7939, 38.6871), SetPlayerInterior(playerid, 0);
  165. }
  166. else if(PlayerToPoint(3.0, playerid, 2280.0898, 2458.7939, 38.6871) && GetPlayerVirtualWorld(playerid) == 0) {
  167. if(IsACop(playerid)) SetPlayerPosEx(playerid, 2337.1826, 2458.7441, 14.9921), SetPlayerInterior(playerid, 0);
  168. }
  169. else if(PlayerToPoint(3.0, playerid, 1630.2462, 1793.0410, 10.8156) && GetPlayerVirtualWorld(playerid) == 0) {
  170. if(PlayerInfo[playerid][pMember] == 13) SetPlayerPosEx(playerid, 1606.6693, 1786.6062, 30.4599), SetPlayerInterior(playerid, 0);
  171. }
  172. else if(PlayerToPoint(3.0, playerid, 1606.6693, 1786.6062, 30.4599) && GetPlayerVirtualWorld(playerid) == 0) {
  173. if(PlayerInfo[playerid][pMember] == 13) SetPlayerPosEx(playerid, 1630.2462, 1793.0410, 10.8156), SetPlayerInterior(playerid, 0);
  174. }
  175. if(IsPlayerInRangeOfPoint(playerid,2,1062.1185, 2077.5059, 10.8352)) {
  176. InTraining[playerid] = 0;
  177. FactionsSpawns(playerid);
  178. new i = GetPVarInt(playerid, "Training");
  179. SetPlayerPosEx(playerid, Training[i][0], Training[i][1], Training[i][2]);
  180. DeletePVar(playerid, "Training");
  181. ResetPlayerWeapons(playerid);
  182. SCM(playerid, COLOR_YELLOW, "Ai iesit din sala de antrenament.");
  183. }
  184. if(IsPlayerInRangeOfPoint(playerid,2,1918.2250,-1619.8477,1770.7469)) {
  185. if(IsACop(playerid)) ShowPlayerDialog(playerid, DIALOG_TELEPORT, DIALOG_STYLE_LIST, "Teleport", "Enter Yard\nExit jail", "Select", "Cancel");
  186. else {
  187. SetPlayerVirtualWorld(playerid, 1339);
  188. SetPlayerPosEx(playerid, 1772.0298,-1548.0693,9.9068);
  189. SetPlayerInterior(playerid, 0);
  190. }
  191. }
  192. if(IsPlayerInRangeOfPoint(playerid,2,1798.5109,-1578.3337,14.0848) || IsPlayerInRangeOfPoint(playerid,2,1771.7123,-1547.5963,9.9116)) {
  193. if(PlayerInfo[playerid][pJailTime] >= 1 || IsACop(playerid)) {
  194. SetPlayerVirtualWorld(playerid, 0);
  195. SetPlayerPosEx(playerid, 1918.2250,-1619.8477,1770.7469);
  196. SetPlayerInterior(playerid, 0);
  197. TogglePlayerControllable(playerid, 0);
  198. SetTimerEx("UnFreezeStation", 1000, false, "i", playerid);
  199. }
  200. }
  201. if(IsPlayerInRangeOfPoint(playerid,2,2050.3245,1218.4463,547.9710) && IsACop(playerid)) {
  202. SetPlayerVirtualWorld(playerid, 0);
  203. SetPlayerPosEx(playerid, 1798.5109,-1578.3337,14.0848);
  204. SetPlayerInterior(playerid, 0);
  205. }
  206. else if(IsPlayerInRangeOfPoint(playerid,2,1765.1732,-1569.0253,1742.4930)) SetPlayerPosEx(playerid,1764.3419,-1567.7599,1742.4967);
  207. else if(IsPlayerInRangeOfPoint(playerid,2,2166.4771,-1671.7883,15.0743)) {
  208. SetPlayerInterior(playerid,5);
  209. SetPlayerPosEx(playerid,318.5867,1115.4735,1083.8828);
  210. }
  211. else if(IsPlayerInRangeOfPoint(playerid,2,2307.2935,-1786.0671,13.5557)) {
  212. SetPlayerInterior(playerid,3);
  213. SetPlayerPosEx(playerid,1527.229980,-11.574499,1002.097106);
  214. }
  215. else if(IsPlayerInRangeOfPoint(playerid,2,1095.3142,-1451.3650,22.7504)) {
  216. SetPlayerInterior(playerid,14);
  217. SetPlayerPosEx(playerid,204.2205,-168.3091,1000.5234);
  218. }
  219. else if(IsPlayerInRangeOfPoint(playerid,2,2229.3289,-1722.0793,13.5625)) {
  220. SetPlayerInterior(playerid,5);
  221. SetPlayerPosEx(playerid,772.111999,-3.898649,1000.728820);
  222. }
  223. else if(IsPlayerInRangeOfPoint(playerid,2,1481.1063,-1771.2532,18.7958)) {
  224. SetPlayerInterior(playerid,3);
  225. SetPlayerPosEx(playerid,387.7978,173.8582,1008.3828);
  226. }
  227. else if(PlayerToPoint(2,playerid,627.5488,-571.6494,17.6572)) {
  228. SetPlayerPosEx(playerid,238.5496,139.3451,1003.0234);
  229. SetPlayerInterior(playerid,3);
  230. SetPlayerVirtualWorld(playerid, 0);
  231. return 1;
  232. }
  233. else if(PlayerToPoint(2,playerid,201.5580,1869.3890,13.1406) && IsACop(playerid)) {
  234. SetPlayerPosEx(playerid,288.7645,167.7334,1007.1719);
  235. SetPlayerInterior(playerid,3);
  236. SetPlayerVirtualWorld(playerid, 1);
  237. return 1;
  238. }
  239. else if(IsPlayerInRangeOfPoint(playerid,2,1671.5824,-1329.4281,17.4524)) {
  240. if(areape == 1) {
  241. SetPlayerInterior(playerid,15);
  242. SetPlayerPosEx(playerid,-1423.5153,935.8321,1036.4756);
  243. }
  244. else return SCM(playerid,COLOR_WHITE,"Arena de evente este inchisa.");
  245. }
  246. }
  247. if(IsPlayerInRangeOfPoint(playerid,2,1764.3419,-1567.7599,1742.4967)) SetPlayerPosEx(playerid,1765.1732,-1569.0253,1742.4930);
  248. else if(IsPlayerInRangeOfPoint(playerid,2,-2027.0515,-104.5211,1035.1719)) {
  249. SetPlayerInterior(playerid,0);
  250. SetPlayerPosEx(playerid,-329.5237, 1536.6777, 76.6322);
  251. SetPlayerVirtualWorld(playerid, 0);
  252. InHQ[playerid] = -1;
  253. }
  254. else if(IsPlayerInRangeOfPoint(playerid,2,-2158.6482,642.3111,1052.3750)) {
  255. SetPlayerInterior(playerid,0);
  256. SetPlayerPosEx(playerid,1051.7865,-346.0753,73.9922);
  257. InHQ[playerid] = -1;
  258. }
  259. else if(IsPlayerInRangeOfPoint(playerid,2,626.3122,-11.8606,1000.9219) && GetPlayerVirtualWorld(playerid) == 10) {
  260. SetPlayerInterior(playerid,0);
  261. SetPlayerPosEx(playerid,2448.5317, -2120.4065, 13.5339);
  262. SetPlayerVirtualWorld(playerid, 0);
  263. InHQ[playerid] = -1;
  264. }
  265. else if(IsPlayerInRangeOfPoint(playerid,2,318.5867,1115.4735,1083.8828)) {
  266. SetPlayerInterior(playerid,0);
  267. SetPlayerPosEx(playerid,2166.4771,-1671.7883,15.0743);
  268. }
  269. else if(IsPlayerInRangeOfPoint(playerid,2,204.2205,-168.3091,1000.5234)) {
  270. SetPlayerInterior(playerid,0);
  271. SetPlayerPosEx(playerid,1095.3142,-1451.3650,22.7504);
  272. }
  273. else if(PlayerToPoint(4.0, playerid,1494.2838,1304.3364,1093.2891) && GetPlayerVirtualWorld(playerid) == 3) {
  274. SetPlayerInterior(playerid,0);
  275. SetPlayerPosEx(playerid,1016.5253,-1557.4689,14.8657);
  276. SetPlayerVirtualWorld(playerid, 0);
  277. InHQ[playerid] = -1;
  278. }
  279. else if(IsPlayerInRangeOfPoint(playerid,2,1702.2629,-1667.8807,20.2188) && GetPlayerVirtualWorld(playerid) == 0) {
  280. SetPlayerInterior(playerid,0);
  281. SetPlayerPosEx(playerid,1754.8519,-1893.8944,13.5568);
  282. SetPlayerVirtualWorld(playerid, 0);
  283. InHQ[playerid] = -1;
  284. }
  285. else if(IsPlayerInRangeOfPoint(playerid,2,1702.2629,-1667.8807,20.2188) && GetPlayerVirtualWorld(playerid) == 1) {
  286. SetPlayerInterior(playerid,0);
  287. SetPlayerPosEx(playerid,940.4329,1733.4216,8.8516);
  288. SetPlayerVirtualWorld(playerid, 0);
  289. InHQ[playerid] = -1;
  290. }
  291. else if(IsPlayerInRangeOfPoint(playerid,2,1494.2838,1304.3364,1093.2891) && GetPlayerVirtualWorld(playerid) == 7) {
  292. SetPlayerInterior(playerid,0);
  293. SetPlayerPosEx(playerid,1607.3521, 1817.3278, 10.7849);
  294. SetPlayerVirtualWorld(playerid, 0);
  295. InHQ[playerid] = -1;
  296. }
  297. else if(IsPlayerInRangeOfPoint(playerid,2,-204.439987,-26.453998,1002.273437)) {
  298. SetPlayerInterior(playerid,0);
  299. SetPlayerPosEx(playerid,1090.7542,-1476.3380,22.7465);
  300. }
  301. else if(IsPlayerInRangeOfPoint(playerid,2,1527.229980,-11.574499,1002.097106)) {
  302. SetPlayerInterior(playerid,0);
  303. SetPlayerPosEx(playerid,2307.2935,-1786.0671,13.5557);
  304. }
  305. else if(IsPlayerInRangeOfPoint(playerid,1,304.5868,-141.9874,1004.0625)) SetPlayerPosEx(playerid,305.7950,-141.8203,1004.0547);
  306. else if(IsPlayerInRangeOfPoint(playerid,1,298.8386,-141.9191,1004.0547)) SetPlayerPosEx(playerid,300.1631,-141.8074,1004.0625);
  307. else if(IsPlayerInRangeOfPoint(playerid,2,1262.1383,-785.3315,1091.9063) && GetPlayerVirtualWorld(playerid) == 3) {
  308. SetPlayerInterior(playerid,0);
  309. SetPlayerPosEx(playerid, 1481.10461, -1770.03003, 19.01990);
  310. SetPlayerVirtualWorld(playerid,0);
  311. InHQ[playerid] = -1;
  312. }
  313. else if(IsPlayerInRangeOfPoint(playerid,2,772.111999,-3.898649,1000.728820)) {
  314. SetPlayerInterior(playerid,0);
  315. SetPlayerPosEx(playerid,2229.3289,-1722.0793,13.5625);
  316. PlayerInfo[playerid][pLocal] = 255;
  317. }
  318. else if(PlayerToPoint(5,playerid,387.7978,173.8582,1008.3828)) {
  319. SetPlayerPosEx(playerid,1481.1063,-1771.2532,18.7958);
  320. SetPlayerInterior(playerid,0);
  321. GameTextForPlayer(playerid, string, 1000, 1);
  322. }
  323. else if(PlayerToPoint(5,playerid,238.5496,139.3451,1003.0234) && GetPlayerVirtualWorld(playerid) == 0) {
  324. SetPlayerPosEx(playerid,627.5488,-571.6494,17.6572);
  325. SetPlayerInterior(playerid,0);
  326. InHQ[playerid] = -1;
  327. }
  328. else if(PlayerToPoint(5,playerid,288.7645,167.7334,1007.1719) && GetPlayerVirtualWorld(playerid) == 1) {
  329. SetPlayerPosEx(playerid,201.5580,1869.3890,13.1406);
  330. SetPlayerInterior(playerid,0);
  331. SetPlayerVirtualWorld(playerid, 0);
  332. InHQ[playerid] = -1;
  333. }
  334. else if(IsPlayerInRangeOfPoint(playerid,2,761.412963,1440.191650,1102.703125)) {
  335. SetPlayerInterior(playerid,0);
  336. SetPlayerPosEx(playerid,387.7978,173.8582,1008.3828);
  337. }
  338. else if(IsPlayerInRangeOfPoint(playerid,2,2324.2273,-1148.8241,1050.7101) && GetPlayerVirtualWorld(playerid) == 1) {
  339. SetPlayerInterior(playerid,0);
  340. SetPlayerPosEx(playerid,1454.2269,751.6389,11.0234);
  341. InHQ[playerid] = -1;
  342. SetPlayerVirtualWorld(playerid,0);
  343. }
  344. else if(IsPlayerInRangeOfPoint(playerid,2,-1423.5153,935.8321,1036.4756)) {
  345. if(areape == 1) {
  346. SetPlayerInterior(playerid,0);
  347. SetPlayerPosEx(playerid,1671.5824,-1329.4281,17.4524);
  348. }
  349. }
  350. }
  351. if(GetPlayerVehicleID(playerid) == rentls[1] || GetPlayerVehicleID(playerid) == rentls[2] || GetPlayerVehicleID(playerid) == rentls[3] || GetPlayerVehicleID(playerid) == rentls[4] || GetPlayerVehicleID(playerid) == rentls[5] ||
  352. GetPlayerVehicleID(playerid) == rentls[6] || GetPlayerVehicleID(playerid) == rentls[7] || GetPlayerVehicleID(playerid) == rentls[8] || GetPlayerVehicleID(playerid) == rentls[9] || GetPlayerVehicleID(playerid) == rentls[10]) {
  353. TogglePlayerControllable(playerid, 1);
  354. RemovePlayerFromVehicleEx(playerid);
  355. }
  356. if(GetPlayerVehicleID(playerid) == scooter[1] || GetPlayerVehicleID(playerid) == scooter[2] || GetPlayerVehicleID(playerid) == scooter[3] || GetPlayerVehicleID(playerid) == scooter[4] || GetPlayerVehicleID(playerid) == scooter[5]) {
  357. TogglePlayerControllable(playerid, 1);
  358. RemovePlayerFromVehicleEx(playerid);
  359. }
  360. if(NoFuel[playerid] == 1) {
  361. RemovePlayerFromVehicleEx(playerid);
  362. TogglePlayerControllable(playerid, 1);
  363. NoFuel[playerid] = 0;
  364. }
  365. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement