Advertisement
Guest User

Untitled

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