Advertisement
Guest User

sadada

a guest
Jun 20th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.05 KB | None | 0 0
  1. if(IsPlayerConnected(playerid))
  2. {
  3. if(BusinessRob[playerid] == 3) return SendClientMessage(playerid, COLOR_ROB, "Trebuie sa astepti 10 secunde pentru a jefui business-ul.");
  4. for(new i = 1; i < sizeof(HouseInfo); i++)
  5. {
  6. if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]) && GetPlayerVirtualWorld(playerid) == 0)
  7. {
  8. if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
  9. {
  10. SetPlayerInterior(playerid,HouseInfo[i][hInterior]);
  11. SetPlayerPosEx(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
  12. GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
  13. PlayerInfo[playerid][pInt] = HouseInfo[i][hInterior];
  14. PlayerInfo[playerid][pLocal] = i;
  15. SetPlayerVirtualWorld(playerid,HouseInfo[i][hVirtual]);
  16. InHouse[playerid] = i;
  17. if(strlen(housestring[InHouse[playerid]]) > 0)
  18. {
  19. StopAudioStreamForPlayer(playerid);
  20. PlayAudioStreamForPlayer(playerid, housestring[InHouse[playerid]]);
  21. }
  22. }
  23. else
  24. {
  25. GameTextForPlayer(playerid, "~r~~h~Locked", 5000, 1);
  26. }
  27. }
  28. }
  29. for(new i = 1; i < sizeof(BizzInfo); i++)
  30. {
  31. if (IsPlayerInRangeOfPoint(playerid,2,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
  32. {
  33. if(BizzInfo[i][bSbiz] != 0) return 0;
  34. if(GetPlayerCash(playerid) >= BizzInfo[i][bEntranceCost])
  35. {
  36. if(BizzInfo[i][bLocked] == 1)
  37. {
  38. GameTextForPlayer(playerid, "~r~~h~Closed", 5000, 1);
  39. return 1;
  40. }
  41. if(LastBiz[playerid] != i)
  42. {
  43. GivePlayerCash(playerid,-BizzInfo[i][bEntranceCost]);
  44. BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
  45. format(string,sizeof(string),"~r~-$%d",BizzInfo[i][bEntranceCost]);
  46. GameTextForPlayer(playerid, string, 5000, 1);
  47. }
  48. else
  49. {
  50. GameTextForPlayer(playerid, "welcome back", 5000, 1);
  51. }
  52. LastBiz[playerid] = i;
  53. if(BizzInfo[i][bType] == 3)
  54. {
  55. if(strlen(barstring[i][playerid]) > 0)
  56. {
  57. StopAudioStreamForPlayer(playerid);
  58. PlayAudioStreamForPlayer(playerid, barstring[i]);
  59. }
  60. }
  61. if(BizzInfo[i][bType] == 1)
  62. {
  63. SCM(playerid,COLOR_GREEN,"Inselatoriile (tepele) nu sunt permise pe server. Pentru orice incercare de a insela un player cu bunuri/bani puteti primi ban PERMANENT.");
  64. SCM(playerid,COLOR_GREEN,"Imprumuturile de orice fel (inclusiv datoriile) se fac pe proprie raspundere. Nu ai nicio garantie ca ii vei recupera.");
  65. SCM(playerid,COLOR_GREEN,"Afacerile cu bani reali nu sunt permise. Se pedepseste cu ban 7-14 zile la prima abatere si ban permanent la urmatoarea abatere.");
  66. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /deposit, /withdraw, /balance, /transfer");
  67. }
  68. else if(BizzInfo[i][bType] == 2)
  69. {
  70. SCM(playerid,COLOR_WHITE,"Welcome to the gun shop! The commands of this business are as follows: /buygun");
  71. }
  72. else if(BizzInfo[i][bType] == 3)
  73. {
  74. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buydrink");
  75. }
  76. else if(BizzInfo[i][bType] == 4)
  77. {
  78. SCM(playerid,COLOR_WHITE,"Welcome to the sex shop! The commands of this business are as follows: /buytoys");
  79. }
  80. else if(BizzInfo[i][bType] == 5)
  81. {
  82. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /dice");
  83. }
  84. else if(BizzInfo[i][bType] == 6)
  85. {
  86. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buy");
  87. if(PlayerInfo[playerid][pFishPrice] != 0)
  88. {
  89. ShowPlayerDialog(playerid, DIALOG_SELLFISH, DIALOG_STYLE_MSGBOX, "Sell fish", "Do you want to sell the fish you are carying?", "Yes", "No");
  90. }
  91. }
  92. else if(BizzInfo[i][bType] == 7 || BizzInfo[i][bType] == 14)
  93. {
  94. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyfood");
  95. if(AreFaina[playerid] > 0)
  96. {
  97. new money,faina = AreFaina[playerid];
  98. if(PlayerInfo[playerid][pFarmSkill] == 1)
  99. {
  100. money = 7000 + faina*500;
  101. }
  102. else if(PlayerInfo[playerid][pFarmSkill] == 2)
  103. {
  104. money = 10000 + faina*500;
  105. }
  106. else if(PlayerInfo[playerid][pFarmSkill] == 3)
  107. {
  108. money = 14000 + faina*500;
  109. }
  110. else if(PlayerInfo[playerid][pFarmSkill] == 4)
  111. {
  112. money = 16000 + faina*500;
  113. }
  114. else if(PlayerInfo[playerid][pFarmSkill] == 5)
  115. {
  116. money = 18000 + faina*500;
  117. }
  118. else if(PlayerInfo[playerid][pFarmSkill] >= 6)
  119. {
  120. money = 20000 + faina*500;
  121. }
  122. PlayerInfo[playerid][pFarmTimes]++;
  123. PlayerInfo[playerid][pFarmRem]--;
  124. AreFaina[playerid] = 0;
  125. GivePlayerCash(playerid, money);
  126. Update(playerid, pCashx);
  127. Update(playerid, pFarmTimesx);
  128. Update(playerid, pFarmRemx);
  129. if(PlayerInfo[playerid][pFarmSkill] <= 5)
  130. {
  131. if(PlayerInfo[playerid][pFarmRem] <= 0)
  132. {
  133. PlayerInfo[playerid][pFarmSkill]++;
  134. if(PlayerInfo[playerid][pFarmSkill] == 2)
  135. {
  136. PlayerInfo[playerid][pFarmRem] = 34;
  137. }
  138. else if(PlayerInfo[playerid][pFarmSkill] == 3)
  139. {
  140. PlayerInfo[playerid][pFarmRem] = 49;
  141. }
  142. else if(PlayerInfo[playerid][pFarmSkill] == 4)
  143. {
  144. PlayerInfo[playerid][pFarmRem] = 89;
  145. }
  146. else if(PlayerInfo[playerid][pFarmSkill] == 5)
  147. {
  148. PlayerInfo[playerid][pFarmRem] = 99;
  149. }
  150. Update(playerid,pFarmSkillx);
  151. Update(playerid,pFarmRemx);
  152. format(string,sizeof(string),"Felicitari! Ai acum skill %d pentru acest job!",PlayerInfo[playerid][pFarmSkill]);
  153. SendClientMessage(playerid, COLOR_YELLOW, string);
  154. }
  155. }
  156. format(string,sizeof(string),"(+) Ai vandut un sac de faina pentru $%s.", FormatNumber(money));
  157. SendClientMessage(playerid, COLOR_GREEN, string);
  158. }
  159. }
  160. else if(BizzInfo[i][bType] == 8)
  161. {
  162. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyfightstyle");
  163. }
  164. else if(BizzInfo[i][bType] == 9)
  165. {
  166. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyfood");
  167. }
  168. else if(BizzInfo[i][bType] == 11)
  169. {
  170. SCM(playerid,COLOR_WHITE,"Welcome! The commands of this business are as follows: /buyglasses ($5000), /clothes, /buyhat ($5000)");
  171. }
  172. SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
  173. SetPlayerPosEx(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
  174. PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
  175. PlayerInfo[playerid][pLocal] = i+99;
  176. SetPlayerVirtualWorld(playerid,BizzInfo[i][bVirtual]);
  177. InBussines[playerid] = i;
  178. Update(playerid, pCashx);
  179. new str1[184];
  180. mysql_format(SQL,str1,sizeof(str1),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[i][bTill],i);
  181. mysql_tquery(SQL,str1,"","");
  182. }
  183. else
  184. {
  185. GameTextForPlayer(playerid, "~r~~h~You dont have the cash", 5000, 1);
  186. }
  187. }
  188. }
  189. if(IsPlayerInRangeOfPoint(playerid,2,893.71094, -1636.59204, 14.72620)) // hq staff
  190. {
  191. if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
  192. SetPlayerInterior(playerid, 5);
  193. SetPlayerPosEx(playerid, 1267.663208,-781.323242,1091.906250);
  194. SetPlayerVirtualWorld(playerid, 696969);
  195. PlayerInfo[playerid][pInt] = 5;
  196. }
  197. else if(IsPlayerInRangeOfPoint(playerid,2,1262.1661,-785.6332,1091.9063) && GetPlayerVirtualWorld(playerid) == 696969) // hq staff
  198. {
  199. SetPlayerInterior(playerid, 0);
  200. SetPlayerPosEx(playerid, 893.71094, -1636.59204, 14.72620);
  201. SetPlayerVirtualWorld(playerid, 0);
  202. PlayerInfo[playerid][pInt] = 0;
  203. }
  204. else if (IsPlayerInRangeOfPoint(playerid,2,1090.7542,-1476.3380,22.7465)) //tatto
  205. {
  206. SetPlayerInterior(playerid,16);
  207. SetPlayerPosEx(playerid,-204.439987,-26.453998,1002.273437);
  208. GameTextForPlayer(playerid, "~r~Tatto", 5000, 1);
  209. PlayerInfo[playerid][pInt] = 16;
  210. }
  211. else if (IsPlayerInRangeOfPoint(playerid,2,1765.1732,-1569.0253,1742.4930)) // enter visit
  212. {
  213. SetPlayerPosEx(playerid,1764.3419,-1567.7599,1742.4967);
  214. }
  215. else if (IsPlayerInRangeOfPoint(playerid,2,2166.4771,-1671.7883,15.0743)) // drugs house
  216. {
  217. SetPlayerInterior(playerid,5);
  218. SetPlayerPosEx(playerid,318.5867,1115.4735,1083.8828);
  219. PlayerInfo[playerid][pInt] = 5;
  220. }
  221. else if (IsPlayerInRangeOfPoint(playerid,2,-329.5258,1536.7759,76.6117)) //nr
  222. {
  223. if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
  224. {
  225. SetPlayerInterior(playerid,3);
  226. SetPlayerPosEx(playerid,-2027.0515,-104.5211,1035.1719);
  227. PlayerInfo[playerid][pInt] = 3;
  228. InHQ[playerid] = 9;
  229. }
  230. }
  231. else if (IsPlayerInRangeOfPoint(playerid,2,2435.3064,1671.0139,10.8203)) //SI
  232. {
  233. if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
  234. {
  235. SetPlayerInterior(playerid,3);
  236. SetPlayerPosEx(playerid,1494.2838,1304.3364,1093.2891);
  237. PlayerInfo[playerid][pInt] = 3;
  238. SetPlayerVirtualWorld(playerid, 3);
  239. InHQ[playerid] = 12;
  240. }
  241. }
  242. else if (IsPlayerInRangeOfPoint(playerid,2,1081.1794,-345.3979,73.9825))//hitman
  243. {
  244. if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
  245. {
  246. SetPlayerInterior(playerid,12);
  247. SetPlayerPosEx(playerid,2323.9993,-1148.0469,1050.7101);
  248. PlayerInfo[playerid][pInt] = 12;
  249. InHQ[playerid] = 11;
  250. SetPlayerVirtualWorld(playerid, 2);
  251. }
  252. }
  253. else if (IsPlayerInRangeOfPoint(playerid,2,1754.3792,-1894.0465,13.5569)) //LS TAXI
  254. {
  255. if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
  256. {
  257. SetPlayerInterior(playerid,18);
  258. SetPlayerPosEx(playerid,1700.9830,-1667.8865,20.2188);
  259. PlayerInfo[playerid][pInt] = 18;
  260. SetPlayerVirtualWorld(playerid, 5);
  261. InHQ[playerid] = 13;
  262. }
  263. }
  264. else if (IsPlayerInRangeOfPoint(playerid,2,1614.92480, 1816.09631, 10.91310)) //fireman / paramedic
  265. {
  266. if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
  267. {
  268. SetPlayerInterior(playerid,3);
  269. SetPlayerPosEx(playerid,1494.2838,1304.3364,1093.2891);
  270. PlayerInfo[playerid][pInt] = 3;
  271. SetPlayerVirtualWorld(playerid, 7);
  272. InHQ[playerid] = 14;
  273. }
  274. }
  275. else if (IsPlayerInRangeOfPoint(playerid,2,2307.2935,-1786.0671,13.5557)) // b'dub house
  276. {
  277. SetPlayerInterior(playerid,3);
  278. SetPlayerPosEx(playerid,1527.229980,-11.574499,1002.097106);
  279. GameTextForPlayer(playerid, "~w~B'Dub House", 5000, 1);
  280. PlayerInfo[playerid][pInt] = 3;
  281. }
  282. else if (IsPlayerInRangeOfPoint(playerid,2,157.3923,1903.2848,18.6660)) // armoury NG
  283. {
  284. if (IsACop(playerid))
  285. {
  286. SetPlayerInterior(playerid,10);
  287. SetPlayerPosEx(playerid,246.5872,109.0304,1003.2188);
  288. GameTextForPlayer(playerid, "~w~National Guard Armoury", 5000, 1);
  289. PlayerInfo[playerid][pInt] = 10;
  290. SetPlayerVirtualWorld(playerid, 4);
  291. InHQ[playerid] = 3;
  292. }
  293. }
  294. else if (IsPlayerInRangeOfPoint(playerid,2,242.8626,66.2978,1003.6406) && GetPlayerVirtualWorld(playerid) == 0) // lspd armoury
  295. {
  296. if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not a cop.");
  297. {
  298. SetPlayerInterior(playerid,3);
  299. SetPlayerVirtualWorld(playerid,333);
  300. SetPlayerPosEx(playerid,288.8405,167.7809,1007.1719);
  301. GameTextForPlayer(playerid, "~w~LSPD Staff HQ", 5000, 1);
  302. PlayerInfo[playerid][pInt] = 3;
  303. InHQ[playerid] = 1;
  304. }
  305. }
  306. else if (IsPlayerInRangeOfPoint(playerid,2,242.8626,66.2978,1003.6406) && GetPlayerVirtualWorld(playerid) == 3) // lvpd armoury
  307. {
  308. if (!IsACop(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not a cop.");
  309. {
  310. SetPlayerInterior(playerid,3);
  311. SetPlayerVirtualWorld(playerid,343);
  312. SetPlayerPosEx(playerid,288.8405,167.7809,1007.1719);
  313. GameTextForPlayer(playerid, "~w~LVPD Staff HQ", 5000, 1);
  314. PlayerInfo[playerid][pInt] = 3;
  315. InHQ[playerid] = 1;
  316. }
  317. }
  318. else if (PlayerToPoint(2,playerid,1553.1854,-1675.8188,16.1953) && GetPlayerVirtualWorld(playerid) == 0)
  319. {
  320. SetPlayerPosEx(playerid,246.7732,65.1425,1003.6406);
  321. SetPlayerInterior(playerid,6);
  322. SetPlayerVirtualWorld(playerid,0);
  323. format(string, sizeof(string), "~w~Inside the ~w~LSPD");
  324. GameTextForPlayer(playerid, string, 1000, 1);
  325. return 1;
  326. }
  327. else if (PlayerToPoint(2,playerid,2287.1047,2431.7996,10.8203))
  328. {
  329. SetPlayerPosEx(playerid,246.7732,65.1425,1003.6406);
  330. SetPlayerInterior(playerid,6);
  331. SetPlayerVirtualWorld(playerid,3);
  332. format(string, sizeof(string), "~w~Inside the ~w~LVPD");
  333. GameTextForPlayer(playerid, string, 1000, 1);
  334. return 1;
  335. }
  336. else if (PlayerToPoint(2,playerid,627.6160,-571.7920,17.6242))
  337. {
  338. SetPlayerPosEx(playerid,238.5496,139.3451,1003.0234);
  339. SetPlayerInterior(playerid,3);
  340. format(string, sizeof(string), "~w~FBI");
  341. GameTextForPlayer(playerid, string, 1000, 1);
  342. return 1;
  343. }
  344. else if (IsPlayerInRangeOfPoint(playerid,2,1456.7423,2773.3423,10.8203))//Los Aztecas
  345. {
  346. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  347. {
  348. GameTextForPlayer(playerid, "~g~Los Aztecas", 1000, 1);
  349. SetPlayerInterior(playerid,6);
  350. PlayerInfo[playerid][pInt] = 6;
  351. SetPlayerPosEx(playerid,774.213989,-48.924297,1000.585937);
  352. SetPlayerVirtualWorld(playerid, 1);
  353. InHQ[playerid] = 4;
  354. }
  355. }
  356. else if (IsPlayerInRangeOfPoint(playerid,2,2495.3271,-1690.6740,14.7656))//Grove Street
  357. {
  358. if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
  359. {
  360. GameTextForPlayer(playerid, "~g~Grove Street", 1000, 1);
  361. SetPlayerInterior(playerid,3);
  362. SetPlayerPosEx(playerid,2496.049804,-1695.238159,1014.742187);
  363. InHQ[playerid] = 5;
  364. SetPlayerVirtualWorld(playerid,393);
  365. }
  366. }
  367. else if (IsPlayerInRangeOfPoint(playerid,2,1455.2687,750.8684,11.0234))
  368. {
  369. if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
  370. {
  371. SetPlayerInterior(playerid,3);
  372. SetPlayerPosEx(playerid,964.106994,-53.205497,1001.124572);
  373. GameTextForPlayer(playerid, "~w~Ballas HQ", 5000, 1);
  374. PlayerInfo[playerid][pInt] = 3;
  375. InHQ[playerid] = 10;
  376. }
  377. }
  378. else if (IsPlayerInRangeOfPoint(playerid,2,725.6769,-1440.4506,13.5391))
  379. {
  380. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
  381. {
  382. SetPlayerInterior(playerid,12);
  383. SetPlayerPosEx(playerid,2324.2273,-1148.8241,1050.7101);
  384. GameTextForPlayer(playerid, "~w~Los Vagos HQ", 5000, 1);
  385. PlayerInfo[playerid][pInt] = 12;
  386. InHQ[playerid] = 6;
  387. SetPlayerVirtualWorld(playerid,1);
  388. }
  389. }
  390. else if (IsPlayerInRangeOfPoint(playerid,2,1510.3986,-1059.5723,25.0625))
  391. {
  392. if(areape == 1)
  393. {
  394. SetPlayerInterior(playerid,15);
  395. SetPlayerPosEx(playerid,-1423.5153,935.8321,1036.4756);
  396. PlayerInfo[playerid][pInt] = 15;
  397. }
  398. else return SCM(playerid,COLOR_WHITE,"Event area is closed.");
  399. }
  400. }
  401. for(new i = 1; i < sizeof(HouseInfo); i++)
  402. {
  403. if (PlayerToPoint(2, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]) && HouseInfo[i][hVirtual] == GetPlayerVirtualWorld(playerid))
  404. {
  405. SetPlayerVirtualWorld(playerid,0);
  406. SetPlayerInterior(playerid,0);
  407. SetPlayerPosEx(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
  408. PlayerInfo[playerid][pInt] = 0;
  409. PlayerInfo[playerid][pLocal] = 255;
  410. InHouse[playerid] = -1;
  411. StopAudioStreamForPlayer(playerid);
  412. }
  413. }
  414. for(new i = 1; i < sizeof(BizzInfo); i++)
  415. {
  416. if (PlayerToPoint(2, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]) && BizzInfo[i][bVirtual]==GetPlayerVirtualWorld(playerid) && BizzInfo[i][bSbiz] == 0)
  417. {
  418. SetPlayerInterior(playerid,0);
  419. PlayerInfo[playerid][pInt] = 0;
  420. SetPlayerPosEx(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
  421. PlayerInfo[playerid][pLocal] = 255;
  422. SetPlayerVirtualWorld(playerid,0);
  423. InBussines[playerid] = -1;
  424. StopAudioStreamForPlayer(playerid);
  425. }
  426. }
  427. if (IsPlayerInRangeOfPoint(playerid,2,1756.4181,-1577.8954,1742.5309) && PlayerInfo[playerid][pJailed] == 0)//jail
  428. {
  429. SetPlayerInterior(playerid,0);
  430. SetPlayerPosEx(playerid,1798.5801,-1578.1804,14.0827);
  431. PlayerInfo[playerid][pInt] = 0;
  432. }
  433. else if (IsPlayerInRangeOfPoint(playerid,2,1764.3419,-1567.7599,1742.4967)) // exit visit
  434. {
  435. SetPlayerPosEx(playerid,1765.1732,-1569.0253,1742.4930);
  436. }
  437. else if (IsPlayerInRangeOfPoint(playerid,2,-2027.0515,-104.5211,1035.1719)) //nr
  438. {
  439. SetPlayerInterior(playerid,0);
  440. SetPlayerPosEx(playerid,-329.5258,1536.7759,76.6117);
  441. PlayerInfo[playerid][pInt] = 0;
  442. SetPlayerVirtualWorld(playerid, 0);
  443. InHQ[playerid] = -1;
  444. }
  445. else if(IsPlayerInRangeOfPoint(playerid,2,2323.9993,-1148.0469,1050.7101) && GetPlayerVirtualWorld(playerid) == 2)//hitman
  446. {
  447. SetPlayerInterior(playerid,0);
  448. SetPlayerVirtualWorld(playerid, 0);
  449. SetPlayerPosEx(playerid,1081.1794,-345.3979,73.9825);
  450. PlayerInfo[playerid][pInt] = 0;
  451. InHQ[playerid] = -1;
  452. }
  453. else if (IsPlayerInRangeOfPoint(playerid,2,626.3122,-11.8606,1000.9219) && GetPlayerVirtualWorld(playerid) == 10) //tow
  454. {
  455. SetPlayerInterior(playerid,0);
  456. SetPlayerPosEx(playerid,918.6766,-1252.2185,16.2109);
  457. PlayerInfo[playerid][pInt] = 0;
  458. SetPlayerVirtualWorld(playerid, 0);
  459. InHQ[playerid] = -1;
  460. }
  461. else if (IsPlayerInRangeOfPoint(playerid,2,318.5867,1115.4735,1083.8828)) // drugs house
  462. {
  463. SetPlayerInterior(playerid,0);
  464. SetPlayerPosEx(playerid,2166.4771,-1671.7883,15.0743);
  465. PlayerInfo[playerid][pInt] = 0;
  466. }
  467. else if (PlayerToPoint(4.0, playerid,1494.2838,1304.3364,1093.2891) && GetPlayerVirtualWorld(playerid) == 3) //SI
  468. {
  469. SetPlayerInterior(playerid,0);
  470. SetPlayerPosEx(playerid,2435.3064,1671.0139,10.8203);
  471. PlayerInfo[playerid][pInt] = 0;
  472. SetPlayerVirtualWorld(playerid, 0);
  473. InHQ[playerid] = -1;
  474. }
  475. else if (IsPlayerInRangeOfPoint(playerid,2,1700.9830,-1667.8865,20.2188) && GetPlayerVirtualWorld(playerid) == 5) //LS TAXI
  476. {
  477. SetPlayerInterior(playerid,0);
  478. SetPlayerPosEx(playerid,1754.3792,-1894.0465,13.5569);
  479. PlayerInfo[playerid][pInt] = 0;
  480. SetPlayerVirtualWorld(playerid, 0);
  481. InHQ[playerid] = -1;
  482. }
  483. else if (IsPlayerInRangeOfPoint(playerid,2,1494.2838,1304.3364,1093.2891) && GetPlayerVirtualWorld(playerid) == 7) //Paramedic
  484. {
  485. SetPlayerInterior(playerid,0);
  486. SetPlayerPosEx(playerid,1614.92480, 1816.09631, 10.91310);
  487. PlayerInfo[playerid][pInt] = 0;
  488. SetPlayerVirtualWorld(playerid, 0);
  489. InHQ[playerid] = -1;
  490. }
  491. else if (IsPlayerInRangeOfPoint(playerid,2,774.213989,-48.924297,1000.585937) && GetPlayerVirtualWorld(playerid) == 1) // los aztecas
  492. {
  493. SetPlayerInterior(playerid,0);
  494. SetPlayerPosEx(playerid,1456.7423,2773.3423,10.8203);
  495. PlayerInfo[playerid][pInt] = 0;
  496. if(InWar[PlayerInfo[playerid][pMember]] == 1)
  497. {
  498. SetPlayerVirtualWorld(playerid, 1024);
  499. }
  500. else
  501. {
  502. SetPlayerVirtualWorld(playerid, 0);
  503. }
  504. InHQ[playerid] = -1;
  505. }
  506. else if(IsPlayerInRangeOfPoint(playerid,2,246.5872,109.0304,1003.2188) && GetPlayerVirtualWorld(playerid) == 4) // armoury NG
  507. {
  508. SetPlayerInterior(playerid,0);
  509. SetPlayerPosEx(playerid,157.3923,1903.2848,18.6660);
  510. PlayerInfo[playerid][pInt] = 0;
  511. SetPlayerVirtualWorld(playerid, 0);
  512. InHQ[playerid] = -1;
  513. }
  514. else if (IsPlayerInRangeOfPoint(playerid,2,-204.439987,-26.453998,1002.273437))
  515. {
  516. SetPlayerInterior(playerid,0);
  517. SetPlayerPosEx(playerid,1090.7542,-1476.3380,22.7465);
  518. PlayerInfo[playerid][pInt] = 0;
  519. }
  520. else if (IsPlayerInRangeOfPoint(playerid,2,1527.229980,-11.574499,1002.097106))
  521. {
  522. SetPlayerInterior(playerid,0);
  523. SetPlayerPosEx(playerid,2307.2935,-1786.0671,13.5557);
  524. PlayerInfo[playerid][pInt] = 0;
  525. }
  526. else if (IsPlayerInRangeOfPoint(playerid,2,288.8405,167.7809,1007.1719) && GetPlayerVirtualWorld(playerid) == 333) // LSPD Armoury
  527. {
  528. SetPlayerInterior(playerid,6);
  529. SetPlayerVirtualWorld(playerid,0);
  530. SetPlayerPosEx(playerid,242.8626,66.2978,1003.6406);
  531. PlayerInfo[playerid][pInt] = 6;
  532. PlayerInfo[playerid][pLocal] = 0;
  533. InHQ[playerid] = -1;
  534. }
  535. else if (IsPlayerInRangeOfPoint(playerid,2,288.8405,167.7809,1007.1719) && GetPlayerVirtualWorld(playerid) == 343) // LVPD Armoury
  536. {
  537. SetPlayerInterior(playerid,6);
  538. SetPlayerVirtualWorld(playerid,3);
  539. SetPlayerPosEx(playerid,242.8626,66.2978,1003.6406);
  540. PlayerInfo[playerid][pInt] = 6;
  541. PlayerInfo[playerid][pLocal] = 0;
  542. InHQ[playerid] = -1;
  543. }
  544. else if (IsPlayerInRangeOfPoint(playerid,1,304.5868,-141.9874,1004.0625))//gunshopusa
  545. {
  546. SetPlayerPosEx(playerid,305.7950,-141.8203,1004.0547);
  547. }
  548. else if (IsPlayerInRangeOfPoint(playerid,1,298.8386,-141.9191,1004.0547))//gunshopusa
  549. {
  550. SetPlayerPosEx(playerid,300.1631,-141.8074,1004.0625);
  551. }
  552. else if (IsPlayerInRangeOfPoint(playerid,2,1262.1383,-785.3315,1091.9063) && GetPlayerVirtualWorld(playerid) == 3)//Guvern
  553. {
  554. SetPlayerInterior(playerid,0);
  555. SetPlayerPosEx(playerid,1481.1063,-1771.2532,18.7958);
  556. PlayerInfo[playerid][pInt] = 0;
  557. SetPlayerVirtualWorld(playerid,0);
  558. InHQ[playerid] = -1;
  559. }
  560. else if (IsPlayerInRangeOfPoint(playerid,2,834.1988,7.1422,1004.1870))
  561. {
  562. SetPlayerInterior(playerid,0);
  563. SetPlayerPosEx(playerid,1247.9105,-1560.4454,13.5556);
  564. PlayerInfo[playerid][pInt] = 0;
  565. }
  566. else if (PlayerToPoint(3.0,playerid,246.7732,65.1425,1003.6406) && GetPlayerVirtualWorld(playerid) == 0)
  567. {
  568. SetPlayerPosEx(playerid,1553.1854,-1675.8188,16.1953);
  569. SetPlayerInterior(playerid,0);
  570. PlayerInfo[playerid][pInt] = 0;
  571. SetPlayerVirtualWorld(playerid,0);
  572. format(string, sizeof(string), "~w~LSPD");
  573. GameTextForPlayer(playerid, string, 1000, 1);
  574. }
  575. else if (PlayerToPoint(3.0,playerid,246.7732,65.1425,1003.6406) && GetPlayerVirtualWorld(playerid) == 3)
  576. {
  577. SetPlayerPosEx(playerid,2287.1047,2431.7996,10.8203);
  578. SetPlayerInterior(playerid,0);
  579. PlayerInfo[playerid][pInt] = 0;
  580. SetPlayerVirtualWorld(playerid,0);
  581. format(string, sizeof(string), "~w~LVPD");
  582. GameTextForPlayer(playerid, string, 1000, 1);
  583. }
  584. /*else if (PlayerToPoint(5,playerid,387.7978,173.8582,1008.3828))
  585. {
  586. SetPlayerPosEx(playerid,1481.1063,-1771.2532,18.7958);
  587. SetPlayerVirtualWorld(playerid,0);
  588. SetPlayerInterior(playerid,0);
  589. PlayerInfo[playerid][pInt] = 0;
  590. format(string, sizeof(string), "~w~Los Santos");
  591. GameTextForPlayer(playerid, string, 1000, 1);
  592. }*/
  593. else if (PlayerToPoint(5,playerid,238.5496,139.3451,1003.0234) && GetPlayerVirtualWorld(playerid) == 0)
  594. {
  595. SetPlayerPosEx(playerid,627.6160,-571.7920,17.6242);
  596. SetPlayerInterior(playerid,0);
  597. PlayerInfo[playerid][pInt] = 0;
  598. format(string, sizeof(string), "~w~Los Santos F.B.I");
  599. GameTextForPlayer(playerid, string, 1000, 1);
  600. InHQ[playerid] = -1;
  601. }
  602. else if (IsPlayerInRangeOfPoint(playerid,2,761.412963,1440.191650,1102.703125))
  603. {
  604. SetPlayerInterior(playerid,0);
  605. SetPlayerPosEx(playerid,387.7978,173.8582,1008.3828);
  606. PlayerInfo[playerid][pInt] = 0;
  607. PlayerInfo[playerid][pLocal] = 255;
  608. }
  609. else if (IsPlayerInRangeOfPoint(playerid,2,964.106994,-53.205497,1001.124572)) //Ballas
  610. {
  611. SetPlayerInterior(playerid,0);
  612. SetPlayerPosEx(playerid,1455.2687,750.8684,11.0234);
  613. PlayerInfo[playerid][pInt] = 0;
  614. PlayerInfo[playerid][pLocal] = 255;
  615. InHQ[playerid] = -1;
  616. if(InWar[PlayerInfo[playerid][pMember]] == 1)
  617. {
  618. SetPlayerVirtualWorld(playerid, 1024);
  619. }
  620. else
  621. {
  622. SetPlayerVirtualWorld(playerid, 0);
  623. }
  624. }
  625. else if (IsPlayerInRangeOfPoint(playerid,2,2324.2273,-1148.8241,1050.7101) && GetPlayerVirtualWorld(playerid) == 1) //Los Vagos
  626. {
  627. SetPlayerInterior(playerid,0);
  628. SetPlayerPosEx(playerid,725.6769,-1440.4506,13.5391);
  629. PlayerInfo[playerid][pInt] = 0;
  630. PlayerInfo[playerid][pLocal] = 255;
  631. InHQ[playerid] = -1;
  632. if(InWar[PlayerInfo[playerid][pMember]] == 1)
  633. {
  634. SetPlayerVirtualWorld(playerid, 1024);
  635. }
  636. else
  637. {
  638. SetPlayerVirtualWorld(playerid, 0);
  639. }
  640. }
  641. else if (IsPlayerInRangeOfPoint(playerid,2,2496.049804,-1695.238159,1014.742187))//Grove Street
  642. {
  643. GameTextForPlayer(playerid, "~w~Grove Street", 1000, 1);
  644. SetPlayerInterior(playerid,0);
  645. PlayerInfo[playerid][pInt] = 0;
  646. SetPlayerPosEx(playerid,2495.3271,-1690.6740,14.7656);
  647. InHQ[playerid] = -1;
  648. if(InWar[PlayerInfo[playerid][pMember]] == 1)
  649. {
  650. SetPlayerVirtualWorld(playerid, 1024);
  651. }
  652. else
  653. {
  654. SetPlayerVirtualWorld(playerid, 0);
  655. }
  656. }
  657. else if (IsPlayerInRangeOfPoint(playerid,2,-1423.5153,935.8321,1036.4756))
  658. {
  659. if(areape == 1)
  660. {
  661. SetPlayerInterior(playerid,0);
  662. SetPlayerPosEx(playerid,1510.3986,-1059.5723,25.0625);
  663. PlayerInfo[playerid][pInt] = 0;
  664. }
  665. else return SCM(playerid,COLOR_WHITE,"Event area is closed.");
  666. }
  667. }
  668. if(GetPlayerVehicleID(playerid) == rentls[1] || GetPlayerVehicleID(playerid) == rentls[2] || GetPlayerVehicleID(playerid) == rentls[3])
  669. {
  670. TogglePlayerControllable(playerid, 1);
  671. RemovePlayerFromVehicle(playerid);
  672. }
  673. if(NoFuel[playerid] == 1)
  674. {
  675. RemovePlayerFromVehicle(playerid);
  676. TogglePlayerControllable(playerid, 1);
  677. NoFuel[playerid] = 0;
  678. }
  679. ////////////////////////////////////////////////////////////////////////////////////////////////////////GARA / 24/7///////////////////////////////////////////////////////////////////////////
  680. if(PlayerToPoint(4.0, playerid, 650.36047, -609.29718, 15.69630) || PlayerToPoint(4.0, playerid, 1833.0419, -1835.5486, 12.9753) || PlayerToPoint(4.0, playerid, 317.2124, -132.4013, 1002.9965))
  681. {
  682. if(GetPlayerVirtualWorld(playerid) == 0)
  683. {
  684. if(GetPlayerCash(playerid) < 100) return SCM(playerid,COLOR_WHITE,"{FFB870}You don't have money needed.");
  685. new Float:health;
  686. GetPlayerHealthEx(playerid,health);
  687. if(health >= 75)
  688. {
  689. SetPlayerHealthEx(playerid, 100);
  690. ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  691. GivePlayerCash(playerid, -100);
  692. GameTextForPlayer(playerid, "~r~-100$", 5000, 1);
  693. Update(playerid, pCashx);
  694. }
  695. else
  696. {
  697. SetPlayerHealthEx(playerid, health+25);
  698. ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  699. GivePlayerCash(playerid, -100);
  700. GameTextForPlayer(playerid, "~r~-100$", 5000, 1);
  701. Update(playerid, pCashx);
  702. }
  703. }
  704. }
  705. return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement