Guest User

CheckPoint

a guest
Mar 26th, 2020
132
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerEnterCheckpoint(playerid)
  2. {
  3. new carid = GetPlayerVehicleID(playerid);
  4. if(AC[0][acTeleportCPHack] == 1)
  5. {
  6. if(!lz_ProveriBrzinu(playerid, false))
  7. {
  8. if(Lociranje[playerid] == 0 && PI[playerid][pAdmin] < 1)
  9. {
  10. CP_Teleport[playerid]++;
  11. if(CP_Teleport[playerid] > 1)
  12. {
  13. if(CP_Teleport[playerid] > 2)
  14. {
  15. ACKick(playerid, "TeleportHack(CP)");
  16. CP_Teleport[playerid] = 0;
  17. }
  18. else
  19. {
  20. ACWarning(playerid, "TeleportHack(CP)");
  21. }
  22. return true;
  23. }
  24. }
  25. }
  26. }
  27. if(NeMozeCP[playerid] > 0)
  28. {
  29. NeMozeCP[playerid] = 0;
  30. lz_DisablePlayerCheckpoint(playerid);
  31. return true;
  32. }
  33.  
  34. if(ASPolaze[playerid] > 0)
  35. {
  36. if(ASVozilo(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  37. {
  38. if(ASPolaze[playerid] == 1)
  39. {
  40. lz_DisablePlayerCheckpoint(playerid);
  41. cp_SetPlayerCheckpoint(playerid, -2083.9470,-146.2726,35.3203, 4);
  42. ASPolaze[playerid] = 2;
  43. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  44. }
  45. else if(ASPolaze[playerid] == 2)
  46. {
  47. lz_DisablePlayerCheckpoint(playerid);
  48. cp_SetPlayerCheckpoint(playerid, -2083.8083,-165.5814,35.3203, 4);
  49. ASPolaze[playerid] = 3;
  50. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  51. }
  52. else if(ASPolaze[playerid] == 3)
  53. {
  54. lz_DisablePlayerCheckpoint(playerid);
  55. cp_SetPlayerCheckpoint(playerid, -2090.2842,-173.0551,35.3203, 4);
  56. ASPolaze[playerid] = 4;
  57. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  58. }
  59. else if(ASPolaze[playerid] == 4)
  60. {
  61. lz_DisablePlayerCheckpoint(playerid);
  62. cp_SetPlayerCheckpoint(playerid, -2083.8638,-177.8015,35.3203, 4);
  63. ASPolaze[playerid] = 5;
  64. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  65. }
  66. else if(ASPolaze[playerid] == 5)
  67. {
  68. lz_DisablePlayerCheckpoint(playerid);
  69. cp_SetPlayerCheckpoint(playerid, -2079.4409,-193.0545,35.3203, 4);
  70. ASPolaze[playerid] = 6;
  71. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  72. }
  73. else if(ASPolaze[playerid] == 6)
  74. {
  75. lz_DisablePlayerCheckpoint(playerid);
  76. cp_SetPlayerCheckpoint(playerid, -2061.3533,-193.0078,35.3203, 4);
  77. ASPolaze[playerid] = 7;
  78. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  79. }
  80. else if(ASPolaze[playerid] == 7)
  81. {
  82. lz_DisablePlayerCheckpoint(playerid);
  83. cp_SetPlayerCheckpoint(playerid, -2053.7754,-187.2768,35.3274, 4);
  84. ASPolaze[playerid] = 8;
  85. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  86. }
  87. else if(ASPolaze[playerid] == 8)
  88. {
  89. lz_DisablePlayerCheckpoint(playerid);
  90. cp_SetPlayerCheckpoint(playerid, -2053.8264,-169.3052,35.3203, 4);
  91. ASPolaze[playerid] = 9;
  92. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  93. }
  94. else if(ASPolaze[playerid] == 9)
  95. {
  96. lz_DisablePlayerCheckpoint(playerid);
  97. cp_SetPlayerCheckpoint(playerid, -2061.7268,-151.9383,35.3203, 4);
  98. ASPolaze[playerid] = 10;
  99. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  100. }
  101. else if(ASPolaze[playerid] == 10)
  102. {
  103. lz_DisablePlayerCheckpoint(playerid);
  104. cp_SetPlayerCheckpoint(playerid, -2053.9148,-139.1502,35.3274, 4);
  105. ASPolaze[playerid] = 11;
  106. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  107. }
  108. else if(ASPolaze[playerid] == 11)
  109. {
  110. lz_DisablePlayerCheckpoint(playerid);
  111. cp_SetPlayerCheckpoint(playerid, -2043.9674,-127.3324,35.2584, 4);
  112. ASPolaze[playerid] = 12;
  113. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje.");
  114. }
  115. else if(ASPolaze[playerid] == 12)
  116. {
  117. new Float:vhp;
  118. GetVehicleHealth(GetPlayerVehicleID(playerid), vhp);
  119. if(vhp < 900)
  120. {
  121. SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  122. lz_DisablePlayerCheckpoint(playerid);
  123. ASPolaze[playerid] = 0;
  124. lz_SetPlayerPos(playerid, -2033.3922,-117.4472,1035.1759);
  125. lz_SetPlayerInterior(playerid, 3);
  126. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Ostetili ste vozilo, zato niste ni dobili dozvolu.");
  127. return true;
  128. }
  129. SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  130. lz_DisablePlayerCheckpoint(playerid);
  131. LoadObjects(playerid, 5);
  132. PI[playerid][pKolaDoz] = 1;
  133. PI[playerid][pKolaDozVreme] = 300;
  134. ASPolaze[playerid] = 0;
  135. lz_SetPlayerPos(playerid, -2033.3922,-117.4472,1035.1759);
  136. lz_SetPlayerInterior(playerid, 3);
  137. lz_SetPlayerVirtualWorld(playerid, UsaoFirma[playerid]);
  138. EnterijerUsao(playerid);
  139. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Polozili ste test i dobili ste vozacku dozvolu (trajanje 300h).");
  140. SaveAccount(playerid);
  141. }
  142. }
  143. return true;
  144. }
  145.  
  146. if(KosacCP[playerid] > 0)
  147. {
  148. if(IlegalniKosac(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  149. {
  150. KosacCP[playerid]++;
  151. if(KosacCP[playerid] == 2)
  152. {
  153. lz_DisablePlayerCheckpoint(playerid);
  154. cp_SetPlayerCheckpoint(playerid, -1031.7926,-1608.9271,76.3672, 5.0);
  155. GetPlayerPos(playerid,X,Y,Z);
  156. PlayerPlaySound(playerid, 1057, X, Y, Z);
  157. }
  158. else if(KosacCP[playerid] == 3)
  159. {
  160. lz_DisablePlayerCheckpoint(playerid);
  161. cp_SetPlayerCheckpoint(playerid, -1027.2266,-1623.1317,76.3672, 5.0);
  162. GetPlayerPos(playerid,X,Y,Z);
  163. PlayerPlaySound(playerid, 1057, X, Y, Z);
  164. }
  165. else if(KosacCP[playerid] == 4)
  166. {
  167. lz_DisablePlayerCheckpoint(playerid);
  168. cp_SetPlayerCheckpoint(playerid, -1010.9763,-1617.0044,76.3672, 5.0);
  169. GetPlayerPos(playerid,X,Y,Z);
  170. PlayerPlaySound(playerid, 1057, X, Y, Z);
  171. }
  172. else if(KosacCP[playerid] == 5)
  173. {
  174. lz_DisablePlayerCheckpoint(playerid);
  175. cp_SetPlayerCheckpoint(playerid, -1011.4585,-1606.4236,76.3672, 5.0);
  176. GetPlayerPos(playerid,X,Y,Z);
  177. PlayerPlaySound(playerid, 1057, X, Y, Z);
  178. }
  179. else if(KosacCP[playerid] == 6)
  180. {
  181. lz_DisablePlayerCheckpoint(playerid);
  182. cp_SetPlayerCheckpoint(playerid, -1004.6155,-1598.9777,76.3739, 5.0);
  183. GetPlayerPos(playerid,X,Y,Z);
  184. PlayerPlaySound(playerid, 1057, X, Y, Z);
  185. }
  186. else if(KosacCP[playerid] == 7)
  187. {
  188. lz_DisablePlayerCheckpoint(playerid);
  189. cp_SetPlayerCheckpoint(playerid, -1023.3055,-1596.0791,76.3739, 5.0);
  190. GetPlayerPos(playerid,X,Y,Z);
  191. PlayerPlaySound(playerid, 1057, X, Y, Z);
  192. }
  193. else if(KosacCP[playerid] == 8)
  194. {
  195. lz_DisablePlayerCheckpoint(playerid);
  196. cp_SetPlayerCheckpoint(playerid, -1038.5743,-1599.7000,76.3672, 5.0);
  197. GetPlayerPos(playerid,X,Y,Z);
  198. PlayerPlaySound(playerid, 1057, X, Y, Z);
  199. }
  200. else if(KosacCP[playerid] == 9)
  201. {
  202. lz_DisablePlayerCheckpoint(playerid);
  203. cp_SetPlayerCheckpoint(playerid, -1044.6357,-1585.6204,76.3672, 5.0);
  204. GetPlayerPos(playerid,X,Y,Z);
  205. PlayerPlaySound(playerid, 1057, X, Y, Z);
  206. }
  207. else if(KosacCP[playerid] == 10)
  208. {
  209. lz_DisablePlayerCheckpoint(playerid);
  210. cp_SetPlayerCheckpoint(playerid, -1015.9059,-1584.7190,76.3739, 5.0);
  211. GetPlayerPos(playerid,X,Y,Z);
  212. PlayerPlaySound(playerid, 1057, X, Y, Z);
  213. }
  214. else if(KosacCP[playerid] == 11)
  215. {
  216. lz_DisablePlayerCheckpoint(playerid);
  217. cp_SetPlayerCheckpoint(playerid, -999.0450,-1610.0145,76.3672, 5.0);
  218. GetPlayerPos(playerid,X,Y,Z);
  219. PlayerPlaySound(playerid, 1057, X, Y, Z);
  220. }
  221. else if(KosacCP[playerid] == 12)
  222. {
  223. lz_DisablePlayerCheckpoint(playerid);
  224. cp_SetPlayerCheckpoint(playerid, -997.8069,-1636.9551,76.3672, 5.0);
  225. GetPlayerPos(playerid,X,Y,Z);
  226. PlayerPlaySound(playerid, 1057, X, Y, Z);
  227. }
  228. else if(KosacCP[playerid] == 13)
  229. {
  230. lz_DisablePlayerCheckpoint(playerid);
  231. cp_SetPlayerCheckpoint(playerid, -1000.0443,-1659.7161,76.3672, 5.0);
  232. GetPlayerPos(playerid,X,Y,Z);
  233. PlayerPlaySound(playerid, 1057, X, Y, Z);
  234. }
  235. else if(KosacCP[playerid] == 14)
  236. {
  237. lz_DisablePlayerCheckpoint(playerid);
  238. cp_SetPlayerCheckpoint(playerid, -1013.5928,-1665.2979,76.3672, 5.0);
  239. GetPlayerPos(playerid,X,Y,Z);
  240. PlayerPlaySound(playerid, 1057, X, Y, Z);
  241. }
  242. else if(KosacCP[playerid] == 15)
  243. {
  244. lz_DisablePlayerCheckpoint(playerid);
  245. cp_SetPlayerCheckpoint(playerid, -1013.8569,-1640.5367,76.3672, 5.0);
  246. GetPlayerPos(playerid,X,Y,Z);
  247. PlayerPlaySound(playerid, 1057, X, Y, Z);
  248. }
  249. else if(KosacCP[playerid] == 16)
  250. {
  251. lz_DisablePlayerCheckpoint(playerid);
  252. cp_SetPlayerCheckpoint(playerid, -1042.2678,-1637.3972,76.3672, 5.0);
  253. GetPlayerPos(playerid,X,Y,Z);
  254. PlayerPlaySound(playerid, 1057, X, Y, Z);
  255. }
  256. else if(KosacCP[playerid] == 17)
  257. {
  258. lz_DisablePlayerCheckpoint(playerid);
  259. cp_SetPlayerCheckpoint(playerid, -1054.9144,-1613.1454,76.3739, 5.0);
  260. GetPlayerPos(playerid,X,Y,Z);
  261. PlayerPlaySound(playerid, 1057, X, Y, Z);
  262. }
  263. else if(KosacCP[playerid] == 18)
  264. {
  265. if(PZavrsio[playerid] == 1) return INijeZavrsio(playerid);
  266. PZavrsio[playerid] = 0;
  267. KillTimer(PZavrsioTimer[playerid]);
  268. lz_DisablePlayerCheckpoint(playerid);
  269. GetPlayerPos(playerid,X,Y,Z);
  270. PlayerPlaySound(playerid, 1057, X, Y, Z);
  271. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste sa kosenjem, sada idite do crvenog markera, gde cete preraditi i preuzeti il. supstance.");
  272. SCM(playerid, -1, "Kada dodjete do crvenog markera kucajte /preuzmisupstance.");
  273. new vz = GetPlayerVehicleID(playerid);
  274. SetVehicleToRespawn(vz);
  275. lz_RemovePlayerFromVehicle(playerid);
  276. MozeDrogu[playerid]++;
  277. lz_SetPlayerCheckpoint(playerid, -1110.9277,-1665.8497,76.3672,5.0);
  278. KosacCP[playerid] = 0;
  279. carjob[playerid] = 0;
  280. return true;
  281. }
  282. }
  283. return true;
  284. }
  285.  
  286. if(VozP[playerid] > 0)
  287. {
  288. if(MasinovodjaVoz(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  289. {
  290. if(GetSpeed(playerid) < 21)
  291. {
  292. if(VozP[playerid] == 1)
  293. {
  294. VozP[playerid]++;
  295. cp_SetPlayerCheckpoint(playerid, -1943.7155,156.5210,25.7186, 5);
  296. GetPlayerPos(playerid,X,Y,Z);
  297. PlayerPlaySound(playerid, 1057, X, Y, Z);
  298. PutniciVoz(playerid);
  299. }
  300. else if(VozP[playerid] == 2)
  301. {
  302. VozP[playerid]++;
  303. cp_SetPlayerCheckpoint(playerid, 1452.6748,2632.3203,10.8203, 5);
  304. GetPlayerPos(playerid,X,Y,Z);
  305. PlayerPlaySound(playerid, 1057, X, Y, Z);
  306. PutniciVoz(playerid);
  307. }
  308. else if(VozP[playerid] == 3)
  309. {
  310. VozP[playerid]++;
  311. cp_SetPlayerCheckpoint(playerid, 2864.8750,1263.7528,10.8203, 5);
  312. GetPlayerPos(playerid,X,Y,Z);
  313. PlayerPlaySound(playerid, 1057, X, Y, Z);
  314. PutniciVoz(playerid);
  315. }
  316. else if(VozP[playerid] == 4)
  317. {
  318. VozP[playerid]++;
  319. cp_SetPlayerCheckpoint(playerid, 1694.2651,-1954.0078,13.5469, 5);
  320. GetPlayerPos(playerid,X,Y,Z);
  321. PlayerPlaySound(playerid, 1057, X, Y, Z);
  322. PutniciVoz(playerid);
  323. }
  324. else if(VozP[playerid] == 5)
  325. {
  326. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  327. PZavrsio[playerid] = 0;
  328. KillTimer(PZavrsioTimer[playerid]);
  329. VozP[playerid] = 0;
  330. lz_DisablePlayerCheckpoint(playerid);
  331. lz_TogglePlayerControllable(playerid, 0);
  332. GetPlayerPos(playerid,X,Y,Z);
  333. PlayerPlaySound(playerid, 1057, X, Y, Z);
  334. new krsh = random(500)+14000;
  335. #if NEWBIES_MONTH == 1
  336. if(PI[playerid][pLevel] < 10)
  337. {
  338. krsh += krsh/3;
  339. }
  340. #endif
  341. if(HappyJob == 25)
  342. {
  343. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Obisli ste celu rutu oko SA i zaradili ste 2x$%d jer je upaljen happyjob na ovom poslu. (Dodato na platu)", krsh);
  344. PI[playerid][pPlata] += krsh*2;
  345. }
  346. else
  347. {
  348. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Obisli ste celu rutu oko SA i zaradili ste $%d. (Dodato na platu)", krsh);
  349. PI[playerid][pPlata] += krsh;
  350. }
  351. UltraPlata(playerid, 2000);
  352. SPD(playerid, D_MASINOVODJA, DSM, "{1A94E6}Masinovodja", "{FFFFFF}Da li zelite ponovo da zapocnete da vozite\nrutu oko celog San Andreas-a?", "Da", "Ne");
  353. SaveAccount(playerid);
  354. PlayerJobFirmaNovac(playerid, VRSTA_MASINOVODJA, krsh/4);
  355. }
  356. }
  357. }
  358. return true;
  359. }
  360.  
  361. if(SvercMafija[playerid] > 0)
  362. {
  363. if((MSvercerVozilo(GetPlayerVehicleID(playerid)) || GetVehicleModel(GetPlayerVehicleID(playerid)) == 482) && GetPlayerState(playerid) == PL_ST_DRIVER)
  364. {
  365. if(SvercMafija[playerid] == 1)
  366. {
  367. lz_TogglePlayerControllable(playerid, 0);
  368. lz_DisablePlayerCheckpoint(playerid);
  369. SetTimerEx("utovar", 8000, false, "i", playerid);
  370. GameTextForPlayer(playerid, "~w~Vrsi se utovar~n~materijala!~n~Sacekajte malo...", 9000, 3);
  371. SvercMafija[playerid] = 2;
  372. return true;
  373. }
  374. else if(SvercMafija[playerid] == 2)
  375. {
  376. if(PZavrsio[playerid] == 1) return INijeZavrsio(playerid);
  377. PZavrsio[playerid] = 0;
  378. KillTimer(PZavrsioTimer[playerid]);
  379. SvercMafija[playerid] = 0;
  380. lz_DisablePlayerCheckpoint(playerid);
  381. new randddd = random(50)+675;
  382. new cusa[300];
  383. format(cusa,sizeof(cusa),"{007FFF}S » {FFFFFF}Uspesno ste prosvercovali %d materijala i stavili ih u vasu torbu!",randddd);
  384. SCM(playerid,ZUTA,cusa);
  385. PI[playerid][pMats] += randddd;
  386. PI[playerid][pSvercer] = 3;
  387. SaveAccount(playerid);
  388. return true;
  389. }
  390. }
  391. return true;
  392. }
  393.  
  394. if(PilotRadi[playerid] > 0)
  395. {
  396. if(PilotVozilo(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  397. {
  398. if(PilotRadi[playerid] == 1)
  399. {
  400. PilotRadi[playerid] = 2;
  401. lz_TogglePlayerControllable(playerid, 0);
  402. GameTextForPlayer(playerid, "~w~Ukrcavanje putnika~n~Sacekajte malo...", 16000, 3);
  403. SetTimerEx("Ukrcavanje", 15000, false, "i", playerid);
  404. lz_DisablePlayerCheckpoint(playerid);
  405. return true;
  406. }
  407. else if(PilotRadi[playerid] == 2)
  408. {
  409. PilotRadi[playerid] = 3;
  410. lz_TogglePlayerControllable(playerid, 0);
  411. GameTextForPlayer(playerid, "~w~Iskrcavanje putnika~n~Sacekajte malo...", 16000, 3);
  412. SetTimerEx("Iskrcavanje", 15000, false, "i", playerid);
  413. lz_DisablePlayerCheckpoint(playerid);
  414. return true;
  415. }
  416. }
  417. }
  418.  
  419. if(BusRadi[playerid] > 0)
  420. {
  421. if(BusVozilo(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  422. {
  423. BusRadi[playerid]++;
  424. lz_DisablePlayerCheckpoint(playerid);
  425. if(BusRadi[playerid] == 2)
  426. {
  427. cp_SetPlayerCheckpoint(playerid, 2116.7075,-1443.8601,23.8281, 5);
  428. PutniciBus(playerid);
  429. }
  430. else if(BusRadi[playerid] == 3)
  431. {
  432. cp_SetPlayerCheckpoint(playerid, 2075.9424,-1161.4271,23.6847, 5);
  433. PutniciBus(playerid);
  434. }
  435. else if(BusRadi[playerid] == 4)
  436. {
  437. cp_SetPlayerCheckpoint(playerid, 1843.7992,-1176.5527,23.6428, 5);
  438. PutniciBus(playerid);
  439. }
  440. else if(BusRadi[playerid] == 5)
  441. {
  442. cp_SetPlayerCheckpoint(playerid, 1511.5210,-1156.7776,23.9063, 5);
  443. PutniciBus(playerid);
  444. }
  445. else if(BusRadi[playerid] == 6)
  446. {
  447. cp_SetPlayerCheckpoint(playerid, 1212.7419,-1137.3109,23.7372, 5);
  448. PutniciBus(playerid);
  449. }
  450. else if(BusRadi[playerid] == 7)
  451. {
  452. cp_SetPlayerCheckpoint(playerid, 817.6565,-1137.0325,23.7204, 5);
  453. PutniciBus(playerid);
  454. }
  455. else if(BusRadi[playerid] == 8)
  456. {
  457. cp_SetPlayerCheckpoint(playerid, 662.0812,-1178.3861,16.3694, 5);
  458. PutniciBus(playerid);
  459. }
  460. else if(BusRadi[playerid] == 9)
  461. {
  462. cp_SetPlayerCheckpoint(playerid, 622.8426,-1453.4686,14.2248, 5);
  463. PutniciBus(playerid);
  464. }
  465. else if(BusRadi[playerid] == 10)
  466. {
  467. cp_SetPlayerCheckpoint(playerid, 673.5423,-1760.1005,13.4149, 5);
  468. PutniciBus(playerid);
  469. }
  470. else if(BusRadi[playerid] == 11)
  471. {
  472. cp_SetPlayerCheckpoint(playerid, 1027.6366,-1821.2230,13.7844, 5);
  473. PutniciBus(playerid);
  474. }
  475. else if(BusRadi[playerid] == 12)
  476. {
  477. cp_SetPlayerCheckpoint(playerid, 1031.7361,-2069.6243,12.9782, 5);
  478. PutniciBus(playerid);
  479. }
  480. else if(BusRadi[playerid] == 13)
  481. {
  482. cp_SetPlayerCheckpoint(playerid, 1303.9241,-2468.3394,7.6898, 5);
  483. PutniciBus(playerid);
  484. }
  485. else if(BusRadi[playerid] == 14)
  486. {
  487. cp_SetPlayerCheckpoint(playerid, 1351.1639,-2315.6145,13.4234, 5);
  488. PutniciBus(playerid);
  489. }
  490. else if(BusRadi[playerid] == 15)
  491. {
  492. cp_SetPlayerCheckpoint(playerid, 1542.9954,-2198.7585,13.4008, 5);
  493. PutniciBus(playerid);
  494. }
  495. else if(BusRadi[playerid] == 16)
  496. {
  497. cp_SetPlayerCheckpoint(playerid, 1916.2330,-2170.7720,13.3952, 5);
  498. PutniciBus(playerid);
  499. }
  500. else if(BusRadi[playerid] == 17)
  501. {
  502. cp_SetPlayerCheckpoint(playerid, 1965.4677,-1993.4921,13.4211, 5);
  503. PutniciBus(playerid);
  504. }
  505. else if(BusRadi[playerid] == 18)
  506. {
  507. cp_SetPlayerCheckpoint(playerid, 1668.8820,-1822.8993,13.5469, 5);
  508. PutniciBus(playerid);
  509. }
  510. else if(BusRadi[playerid] == 19)
  511. {
  512. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  513. PZavrsio[playerid] = 0;
  514. KillTimer(PZavrsioTimer[playerid]);
  515. new plata51 = random(500)+5000;
  516. #if NEWBIES_MONTH == 1
  517. if(PI[playerid][pLevel] < 10)
  518. {
  519. plata51 += plata51/3;
  520. }
  521. #endif
  522. if(HappyJob == 18)
  523. {
  524. PI[playerid][pPlata] += plata51*2;
  525. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste rutu i zaradili ste 2x$%d jer je upaljen happyjob na ovom poslu!", plata51);
  526. }
  527. else
  528. {
  529. PI[playerid][pPlata] += plata51;
  530. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste rutu i zaradili ste $%d!", plata51);
  531. }
  532. UltraPlata(playerid, 500);
  533. BusRadi[playerid] = 0;
  534. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  535. SaveAccount(playerid);
  536. lz_DisablePlayerCheckpoint(playerid);
  537. SPD(playerid, DIALOG_BUS, DSM, "{1A94E6}Vozac autobusa", "{FFFFFF}Da li zelis ponovo da prevozis putnike?", "Da", "Ne");
  538. PlayerJobFirmaNovac(playerid, VRSTA_BUS, plata51/4);
  539. return true;
  540. }
  541. }
  542. return true;
  543. }
  544.  
  545. if(KamRadi[playerid] > 0)
  546. {
  547. if(KamRadi[playerid] == 1)
  548. {
  549. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  550. {
  551. GameTextForPlayer(playerid, "~w~Istakanje goriva~n~u toku...", 16000, 3);
  552. lz_TogglePlayerControllable(playerid, 0);
  553. SetTimerEx("KamGotovo", 10000, false, "i", playerid);
  554. lz_DisablePlayerCheckpoint(playerid);
  555. KamRadi[playerid] = 2;
  556. PlayerPlaySound(playerid, 1057, X, Y, Z);
  557. }
  558. }
  559. else if(KamRadi[playerid] == 2)
  560. {
  561. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  562. {
  563. GameTextForPlayer(playerid, "~w~Istakanje goriva~n~u toku...", 16000, 3);
  564. lz_TogglePlayerControllable(playerid, 0);
  565. SetTimerEx("KamGotovo", 10000, false, "i", playerid);
  566. lz_DisablePlayerCheckpoint(playerid);
  567. KamRadi[playerid] = 3;
  568. PlayerPlaySound(playerid, 1057, X, Y, Z);
  569. }
  570. }
  571. else if(KamRadi[playerid] == 3)
  572. {
  573. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  574. {
  575. GameTextForPlayer(playerid, "~w~Istakanje goriva~n~u toku...", 16000, 3);
  576. lz_TogglePlayerControllable(playerid, 0);
  577. SetTimerEx("KamGotovo", 10000, false, "i", playerid);
  578. lz_DisablePlayerCheckpoint(playerid);
  579. KamRadi[playerid] = 4;
  580. PlayerPlaySound(playerid, 1057, X, Y, Z);
  581. }
  582. }
  583. else if(KamRadi[playerid] == 4)
  584. {
  585. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  586. {
  587. GameTextForPlayer(playerid, "~w~Istakanje goriva~n~u toku...", 16000, 3);
  588. lz_TogglePlayerControllable(playerid, 0);
  589. SetTimerEx("KamGotovo", 10000, false, "i", playerid);
  590. lz_DisablePlayerCheckpoint(playerid);
  591. KamRadi[playerid] = 5;
  592. PlayerPlaySound(playerid, 1057, X, Y, Z);
  593. }
  594. }
  595. else if(KamRadi[playerid] == 5)
  596. {
  597. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  598. {
  599. GameTextForPlayer(playerid, "~w~Istakanje goriva~n~u toku...", 16000, 3);
  600. lz_TogglePlayerControllable(playerid, 0);
  601. SetTimerEx("KamGotovo", 10000, false, "i", playerid);
  602. lz_DisablePlayerCheckpoint(playerid);
  603. KamRadi[playerid] = 6;
  604. PlayerPlaySound(playerid, 1057, X, Y, Z);
  605. }
  606. }
  607. else if(KamRadi[playerid] == 6)
  608. {
  609. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  610. {
  611. GameTextForPlayer(playerid, "~w~Istakanje goriva~n~u toku...", 16000, 3);
  612. lz_TogglePlayerControllable(playerid, 0);
  613. SetTimerEx("KamGotovo", 10000, false, "i", playerid);
  614. lz_DisablePlayerCheckpoint(playerid);
  615. KamRadi[playerid] = 7;
  616. PlayerPlaySound(playerid, 1057, X, Y, Z);
  617. }
  618. }
  619. else if(KamRadi[playerid] == 7)
  620. {
  621. if(GorivoVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  622. {
  623. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  624. PZavrsio[playerid] = 0;
  625. KillTimer(PZavrsioTimer[playerid]);
  626. PlayerPlaySound(playerid, 1057, X, Y, Z);
  627. new novach = random(500)+10000;
  628. #if NEWBIES_MONTH == 1
  629. if(PI[playerid][pLevel] < 10)
  630. {
  631. novach += novach/3;
  632. }
  633. #endif
  634. PlayerJobFirmaNovac(playerid, VRSTA_GORIVO, novach/4);
  635. PlayerJobFirmaNovac(playerid, VRSTA_NAFTNA, novach/7*2);
  636. if(HappyJob == 9)
  637. {
  638. PI[playerid][pPlata] += novach*2;
  639. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu vozenja goriva i zaradili ste 2x$%d jer je upaljen happyjob na ovom poslu.",novach);
  640. }
  641. else
  642. {
  643. PI[playerid][pPlata] += novach;
  644. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu vozenja goriva i zaradili ste $%d.",novach);
  645. }
  646. UltraPlata(playerid, 1500);
  647. KamRadi[playerid] = 0;
  648. lz_DisablePlayerCheckpoint(playerid);
  649. lz_TogglePlayerControllable(playerid, 1);
  650. SaveAccount(playerid);
  651. SPD(playerid, DIALOG_GORIVO, DIALOG_STYLE_MSGBOX, "{FFFA73}Dostavljac goriva", "{FFFFFF}Da li zelis da ponovo pokrenes prevoz goriva?", "Da", "Ne");
  652. }
  653. }
  654. return true;
  655. }
  656.  
  657. if(Kamion[playerid] > 0)
  658. {
  659. if(Kamion[playerid] == 1)
  660. {
  661. if(KamiondzijaVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  662. {
  663. lz_DisablePlayerCheckpoint(playerid);
  664. cp_SetPlayerCheckpoint(playerid, 822.3423,-1035.0276,24.9977, 5.0);
  665. Kamion[playerid] = 2;
  666. PlayerPlaySound(playerid, 1057, X, Y, Z);
  667. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje!");
  668. }
  669. }
  670. else if(Kamion[playerid] == 2)
  671. {
  672. if(KamiondzijaVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  673. {
  674. lz_DisablePlayerCheckpoint(playerid);
  675. cp_SetPlayerCheckpoint(playerid, 1593.5581,-2197.6331,13.3750, 5.0);
  676. Kamion[playerid] = 3;
  677. PlayerPlaySound(playerid, 1057, X, Y, Z);
  678. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Nastavite dalje!");
  679. }
  680. }
  681. else if(Kamion[playerid] == 3)
  682. {
  683. if(KamiondzijaVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  684. {
  685. lz_DisablePlayerCheckpoint(playerid);
  686. cp_SetPlayerCheckpoint(playerid, 2432.7495,-2123.6650,13.5469, 5.0);
  687. Kamion[playerid] = 4;
  688. PlayerPlaySound(playerid, 1057, X, Y, Z);
  689. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada se vratite nazad do skladista kako biste bili placeni za vas posao.");
  690. }
  691. }
  692. else if(Kamion[playerid] == 4)
  693. {
  694. if(KamiondzijaVozilo(carid) && IsTrailerAttachedToVehicle(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  695. {
  696. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  697. PZavrsio[playerid] = 0;
  698. KillTimer(PZavrsioTimer[playerid]);
  699. PlayerPlaySound(playerid, 1057, X, Y, Z);
  700. GameTextForPlayer(playerid, "~n~~n~~n~~g~Posao izvrsen!", 3000, 3);
  701. new novach = random(150)+3400;
  702. #if NEWBIES_MONTH == 1
  703. if(PI[playerid][pLevel] < 10)
  704. {
  705. novach += novach/3;
  706. }
  707. #endif
  708. PlayerJobFirmaNovac(playerid, VRSTA_KAMIONDZIJA, novach/4);
  709. PI[playerid][pSkillKamiondzija]++;
  710. if(HappyJob == 23)
  711. {
  712. PI[playerid][pPlata] += novach*2;
  713. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Odradili ste turu, dobili ste 2x$%d na platu jer je upaljen happyjob na ovom poslu! (/skills)",novach);
  714. }
  715. else
  716. {
  717. PI[playerid][pPlata] += novach;
  718. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Odradili ste turu, dobili ste $%d na platu! (/skills)",novach);
  719. }
  720. JobSkill(playerid);
  721. if(PI[playerid][pSkillKamiondzija] < 10) { }
  722. else if(PI[playerid][pSkillKamiondzija] < 25)
  723. {
  724. PI[playerid][pPlata] += 200;
  725. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $200 na platu! (/skills - za sledeci skill level)");
  726. }
  727. else if(PI[playerid][pSkillKamiondzija] < 35)
  728. {
  729. PI[playerid][pPlata] += 350;
  730. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $350 na platu! (/skills - za sledeci skill level)");
  731. }
  732. else if(PI[playerid][pSkillKamiondzija] < 50)
  733. {
  734. PI[playerid][pPlata] += 500;
  735. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $500 na platu! (/skills - za sledeci skill level)");
  736. }
  737. else
  738. {
  739. PI[playerid][pPlata] += 650;
  740. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $650 na platu! (/skills)");
  741. }
  742. UltraPlata(playerid, 500);
  743. Kamion[playerid] = 0;
  744. lz_DisablePlayerCheckpoint(playerid);
  745. lz_TogglePlayerControllable(playerid, 0);
  746. SaveAccount(playerid);
  747. SPD(playerid, DIALOG_KAMIONDZIJA, DIALOG_STYLE_MSGBOX, "{FFFA73}Kamiondzija", "{FFFFFF}Da li zelis da ponovo pokrenes posao?", "Da", "Ne");
  748. }
  749. }
  750. return true;
  751. }
  752.  
  753. if(Smecari[playerid] == 1)
  754. {
  755. if(!IsPlayerInAnyVehicle(playerid))
  756. {
  757. //if(IsPlayerInRangeOfPoint(playerid, 3, SmeceX[playerid], SmeceY[playerid], SmeceZ[playerid]))
  758. //{
  759. DestroyPlayerObject(playerid, smecence[playerid]);
  760. SetPlayerAttachedObject( playerid, 9, 1265, 6, 0.281522, -0.151917, -0.094952, 213.986679, 255.047500, 265.017791, 1.000000, 1.000000, 1.000000 );
  761. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Uzeli ste smece, sada ga ostavite u vas smecarski kamion /smece.");
  762. lz_DisablePlayerCheckpoint(playerid);
  763. new mrk[64];
  764. format(mrk, sizeof(mrk), "* %s uzima smece.", GetName(playerid));
  765. ProxDetector(30.0, playerid, mrk, PURPLE1,PURPLE2,PURPLE3,PURPLE4,PURPLE5);
  766. UzeoS[playerid] = 1;
  767. //}
  768. }
  769. return true;
  770. }
  771.  
  772. if(RudKopa[playerid] > 0)
  773. {
  774. if(!IsPlayerInAnyVehicle(playerid))
  775. {
  776. if(RudDuty[playerid] == 1)
  777. {
  778. if(RudKopa[playerid] == 1 && PI[playerid][pJob] == 7)
  779. {
  780. lz_DisablePlayerCheckpoint(playerid);
  781. lz_TogglePlayerControllable(playerid, 0);
  782. ZKTimer[playerid] = SetTimerEx("ZavrsioKopanje",80000,false,"i",playerid);
  783. RudKopa[playerid] = 2;
  784. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  785. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada kopate, sacekajte malo.");
  786. GameTextForPlayer(playerid, "~w~Kopate rudu~n~sacekajte malo...", 60000, 3);
  787. }
  788. else if(RudKopa[playerid] == 2 && PI[playerid][pJob] == 7)
  789. {
  790. lz_DisablePlayerCheckpoint(playerid);
  791. lz_TogglePlayerControllable(playerid, 0);
  792. ZKTimer[playerid] = SetTimerEx("ZavrsioKopanje",80000,false,"i",playerid);
  793. RudKopa[playerid] = 3;
  794. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  795. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada kopate, sacekajte malo.");
  796. GameTextForPlayer(playerid, "~w~Kopate rudu~n~sacekajte malo...", 60000, 3);
  797. }
  798. else if(RudKopa[playerid] == 3 && PI[playerid][pJob] == 7)
  799. {
  800. lz_DisablePlayerCheckpoint(playerid);
  801. lz_TogglePlayerControllable(playerid, 0);
  802. ZKTimer[playerid] = SetTimerEx("ZavrsioKopanje",80000,false,"i",playerid);
  803. RudKopa[playerid] = 4;
  804. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  805. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada kopate, sacekajte malo.");
  806. GameTextForPlayer(playerid, "~w~Kopate rudu~n~sacekajte malo...", 60000, 3);
  807. }
  808. else if(RudKopa[playerid] == 4 && PI[playerid][pJob] == 7)
  809. {
  810. lz_DisablePlayerCheckpoint(playerid);
  811. lz_TogglePlayerControllable(playerid, 0);
  812. ZKTimer[playerid] = SetTimerEx("ZavrsioKopanje",80000,false,"i",playerid);
  813. RudKopa[playerid] = 5;
  814. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  815. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada kopate, sacekajte malo.");
  816. GameTextForPlayer(playerid, "~w~Kopate rudu~n~sacekajte malo...", 60000, 3);
  817. }
  818. else if(RudKopa[playerid] == 5 && PI[playerid][pJob] == 7)
  819. {
  820. lz_DisablePlayerCheckpoint(playerid);
  821. lz_TogglePlayerControllable(playerid, 0);
  822. ZKTimer[playerid] = SetTimerEx("ZavrsioKopanje",80000,false,"i",playerid);
  823. RudKopa[playerid] = 6;
  824. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  825. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada kopate, sacekajte malo.");
  826. GameTextForPlayer(playerid, "~w~Kopate rudu~n~sacekajte malo...", 60000, 3);
  827. }
  828. else if(RudKopa[playerid] == 6 && PI[playerid][pJob] == 7)
  829. {
  830. lz_DisablePlayerCheckpoint(playerid);
  831. lz_TogglePlayerControllable(playerid, 0);
  832. ZKTimer[playerid] = SetTimerEx("ZavrsioKopanjeCelo",80000,false,"i",playerid);
  833. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  834. lz_DisablePlayerCheckpoint(playerid);
  835. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sada kopate, sacekajte malo.");
  836. GameTextForPlayer(playerid, "~w~Kopate rudu~n~sacekajte malo...", 60000, 3);
  837. }
  838. }
  839. }
  840. return true;
  841. }
  842.  
  843. if(PirRadi[playerid] > 0)
  844. {
  845. if(!IsPlayerInAnyVehicle(playerid))
  846. {
  847. if(PirRadi[playerid] == 1 && PI[playerid][pJob] == 5)
  848. {
  849. lz_TogglePlayerControllable(playerid, 0);
  850. SetTimerEx("TimePiro",7500,false,"i",playerid);
  851. PirRadi[playerid] = 2;
  852. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  853. cp_SetPlayerCheckpoint(playerid, 2647.2078,1331.9866,10.8359, 1);
  854. }
  855. else if(PirRadi[playerid] == 2 && PI[playerid][pJob] == 5)
  856. {
  857. lz_TogglePlayerControllable(playerid, 0);
  858. SetTimerEx("TimePiro",10000,false,"i",playerid);
  859. PirRadi[playerid] = 3;
  860. LoopingAnim(playerid,"MISC","IDLE_CHAT_02",2.0,1,0,0,1,1);
  861. cp_SetPlayerCheckpoint(playerid, 2653.5684,1324.8145,10.8203, 1);
  862. }
  863. else if(PirRadi[playerid] == 3 && PI[playerid][pJob] == 5)
  864. {
  865. lz_TogglePlayerControllable(playerid, 0);
  866. SetTimerEx("TimePiro",7500,false,"i",playerid);
  867. PirRadi[playerid] = 4;
  868. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  869. cp_SetPlayerCheckpoint(playerid, 2647.2078,1331.9866,10.8359, 1);
  870. }
  871. else if(PirRadi[playerid] == 4 && PI[playerid][pJob] == 5)
  872. {
  873. lz_TogglePlayerControllable(playerid, 0);
  874. SetTimerEx("TimePiro",10000,false,"i",playerid);
  875. PirRadi[playerid] = 5;
  876. LoopingAnim(playerid,"MISC","IDLE_CHAT_02",2.0,1,0,0,1,1);
  877. cp_SetPlayerCheckpoint(playerid, 2653.5684,1324.8145,10.8203, 1);
  878. }
  879. else if(PirRadi[playerid] == 5 && PI[playerid][pJob] == 5)
  880. {
  881. lz_TogglePlayerControllable(playerid, 0);
  882. SetTimerEx("TimePiro",7500,false,"i",playerid);
  883. PirRadi[playerid] = 6;
  884. LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  885. cp_SetPlayerCheckpoint(playerid, 2647.2078,1331.9866,10.8359,1);
  886. }
  887. else if(PirRadi[playerid] == 6 && PI[playerid][pJob] == 5)
  888. {
  889. lz_TogglePlayerControllable(playerid, 0);
  890. SetTimerEx("NapravioPiro",10000,false,"i",playerid);
  891. PirRadi[playerid] = 0;
  892. LoopingAnim(playerid,"MISC","IDLE_CHAT_02",2.0,1,0,0,1,1);
  893. lz_DisablePlayerCheckpoint(playerid);
  894. }
  895. }
  896. return true;
  897. }
  898.  
  899. if(ADRadi[playerid] > 0)
  900. {
  901. if(IsAnAdriaVozilo(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  902. {
  903. if(ADRadi[playerid] == 1 && PI[playerid][pJob] == 22)
  904. {
  905. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Stigao si do podruma firme 'ADRiA'. Sada izadji iz vozila da utovaris kutiju proizvoda.");
  906. SCM(playerid, -1, "Kutiju uzimate ponovo levim klikom.");
  907. //lz_TogglePlayerControllable(playerid,false);
  908. //SetTimerEx("unfreezeAD",15000,false,"i",playerid);
  909. ADRadi[playerid] = 2;
  910. }
  911. else if(ADRadi[playerid] == 2 && PI[playerid][pJob] == 22)
  912. {
  913. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  914. PZavrsio[playerid] = 0;
  915. KillTimer(PZavrsioTimer[playerid]);
  916. SPD(playerid, DIALOG_ADRIAPOSAO, DIALOG_STYLE_MSGBOX, "{FFFA73}ADRiA Dostavljac", "{FFFFFF}Zelis li ponovo da krenes da dostavljas proizvode\nfirmi 'ADRiA'?", "Da", "Ne");
  917. ADRadi[playerid] = 0;
  918. Nosikutiju[playerid] = 0;
  919. lz_DisablePlayerCheckpoint(playerid);
  920. new krki = random(500)+6200;
  921. #if NEWBIES_MONTH == 1
  922. if(PI[playerid][pLevel] < 10)
  923. {
  924. krki += krki/3;
  925. }
  926. #endif
  927. PlayerJobFirmaNovac(playerid, VRSTA_ADRIA, krki/4);
  928. if(HappyJob == 22)
  929. {
  930. PI[playerid][pPlata] += krki*2;
  931. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Posao izvrsen, 2x$%d vam je dodato na platu jer je upaljen happyjob. (/skills)", krki);
  932. }
  933. else
  934. {
  935. PI[playerid][pPlata] += krki;
  936. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Posao izvrsen, $%d vam je dodato na platu. (/skills)", krki);
  937. }
  938. PI[playerid][pSkillAdria]++;
  939. JobSkill(playerid);
  940. if(PI[playerid][pSkillAdria] < 10) { }
  941. else if(PI[playerid][pSkillAdria] < 25)
  942. {
  943. PI[playerid][pPlata] += 300;
  944. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $300 na platu! (/skills - za sledeci skill level)");
  945. }
  946. else if(PI[playerid][pSkillAdria] < 35)
  947. {
  948. PI[playerid][pPlata] += 600;
  949. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $600 na platu! (/skills - za sledeci skill level)");
  950. }
  951. else if(PI[playerid][pSkillAdria] < 50)
  952. {
  953. PI[playerid][pPlata] += 900;
  954. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $900 na platu! (/skills - za sledeci skill level)");
  955. }
  956. else
  957. {
  958. PI[playerid][pPlata] += 1200;
  959. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $1200 na platu! (/skills)");
  960. }
  961. UltraPlata(playerid, 800);
  962. SaveAccount(playerid);
  963. }
  964. }
  965. }
  966.  
  967. if(DostavljaZlato[playerid] > 0)
  968. {
  969. if(IsAZlatoVozilo(GetPlayerVehicleID(playerid)) && GetPlayerState(playerid) == PL_ST_DRIVER)
  970. {
  971. if(DostavljaZlato[playerid] == 1 && PI[playerid][pJob] == 24)
  972. {
  973. ZlataraInfo[zSF] += 20;
  974. if(ZlataraInfo[zSF] > 350) ZlataraInfo[zSF] = 350;
  975. GameTextForPlayer(playerid, "~w~Sacekaj ~b~10 ~w~sekundi da dostavis zlato!", 10000, 3);
  976. lz_TogglePlayerControllable(playerid,false);
  977. SetTimerEx("unfreeze",10000,false,"i",playerid);
  978. DostavljaZlato[playerid] = 2;
  979. new sstr1[300];
  980. format(sstr1,300,"{FBE204}[ {FFFFFF}San Fierro Zlatara {FBE204}]\n\n( Zlato: {FFFFFF}%ig/350g {FBE204})", ZlataraInfo[zSF]);
  981. Update3DTextLabelText(zlatarad3d[2], -1, sstr1);
  982. cp_SetPlayerCheckpoint(playerid,2798.0107,-1087.9346,30.7188,5);
  983. SacuvajZlatare();
  984. }
  985. else if(DostavljaZlato[playerid] == 2 && PI[playerid][pJob] == 24)
  986. {
  987. ZlataraInfo[zLS] += 20;
  988. if(ZlataraInfo[zLS] > 350) ZlataraInfo[zLS] = 350;
  989. GameTextForPlayer(playerid, "~w~Sacekaj ~b~10 ~w~sekundi da dostavis zlato!", 10000, 3);
  990. lz_TogglePlayerControllable(playerid,false);
  991. SetTimerEx("unfreeze",10000,false,"i",playerid);
  992. DostavljaZlato[playerid] = 3;
  993. new sstr[300];
  994. format(sstr,300,"{FBE204}[ {FFFFFF}Los Santos Zlatara {FBE204}]\n\n( Zlato: {FFFFFF}%ig/350g {FBE204})", ZlataraInfo[zLS]);
  995. Update3DTextLabelText(zlatarad3d[3], -1, sstr);
  996. cp_SetPlayerCheckpoint(playerid,2385.9993,2159.5457,10.8186,5);
  997. SacuvajZlatare();
  998. }
  999. else if(DostavljaZlato[playerid] == 3 && PI[playerid][pJob] == 24)
  1000. {
  1001. ZlataraInfo[zLV] += 20;
  1002. if(ZlataraInfo[zLV] > 350) ZlataraInfo[zLV] = 350;
  1003. GameTextForPlayer(playerid, "~w~Sacekaj ~b~10 ~w~sekundi da dostavis zlato!", 10000, 3);
  1004. lz_TogglePlayerControllable(playerid,false);
  1005. SetTimerEx("unfreeze",10000,false,"i",playerid);
  1006. DostavljaZlato[playerid] = 4;
  1007. new sstr2[300];
  1008. format(sstr2,300,"{FBE204}[ {FFFFFF}Las Venturas Zlatara {FBE204}]\n\n( Zlato: {FFFFFF}%ig/350g {FBE204})", ZlataraInfo[zLV]);
  1009. Update3DTextLabelText(zlatarad3d[1], -1, sstr2);
  1010. cp_SetPlayerCheckpoint(playerid,648.8463,807.6698,-42.9609,5);
  1011. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Vrati vozilo u rudnik kako bi dobio platu.");
  1012. SacuvajZlatare();
  1013. }
  1014. else if(DostavljaZlato[playerid] == 4 && PI[playerid][pJob] == 24)
  1015. {
  1016. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1017. PZavrsio[playerid] = 0;
  1018. KillTimer(PZavrsioTimer[playerid]);
  1019. lz_DisablePlayerCheckpoint(playerid);
  1020. new zarada = random(500)+5000;
  1021. #if NEWBIES_MONTH == 1
  1022. if(PI[playerid][pLevel] < 10)
  1023. {
  1024. zarada += zarada/3;
  1025. }
  1026. #endif
  1027. if(HappyJob == 24)
  1028. {
  1029. SCMF(playerid,-1,"{007FFF}S » {FFFFFF}Istovario si zlato, tvoja zarada iznosi: 2x$%d jer je upaljen happyjob na ovom poslu. (Dodaje se na platu)",zarada);
  1030. PI[playerid][pPlata] += zarada*2;
  1031. }
  1032. else
  1033. {
  1034. SCMF(playerid,-1,"{007FFF}S » {FFFFFF}Istovario si zlato, tvoja zarada iznosi: $%d. (Dodaje se na platu)",zarada);
  1035. PI[playerid][pPlata] += zarada;
  1036. }
  1037. PlayerJobFirmaNovac(playerid, VRSTA_ZLATO, zarada/4);
  1038. UltraPlata(playerid, 800);
  1039. SaveAccount(playerid);
  1040. DostavljaZlato[playerid] = 0;
  1041. SPD(playerid, DIALOG_DOSTAVLJAC_ZLATA, DIALOG_STYLE_MSGBOX, "{FFFA73}Dostavljac zlata", "{FFFFFF}Zelis li ponovo da krenes da dostavljas zlato?", "Da", "Ne");
  1042. }
  1043. }
  1044. return true;
  1045. }
  1046.  
  1047. if(PI[playerid][pJob] == 1)
  1048. {
  1049. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
  1050. {
  1051. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1052. {
  1053. if(PizzaD[playerid] == 1)
  1054. {
  1055. PizzaD[playerid] = 2;
  1056. lz_TogglePlayerControllable(playerid, 0);
  1057. cp_SetPlayerCheckpoint(playerid, 2002.7203,-1600.8015,13.5454, 5.0);
  1058. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1059. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1060. }
  1061. else if(PizzaD[playerid] == 2)
  1062. {
  1063. PizzaD[playerid] = 3;
  1064. lz_TogglePlayerControllable(playerid, 0);
  1065. cp_SetPlayerCheckpoint(playerid, 2136.5251,-1615.1614,13.5843, 5.0);
  1066. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1067. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1068. }
  1069. else if(PizzaD[playerid] == 3)
  1070. {
  1071. PizzaD[playerid] = 4;
  1072. lz_TogglePlayerControllable(playerid, 0);
  1073. cp_SetPlayerCheckpoint(playerid, 2227.0601,-1414.6241,23.8881, 5.0);
  1074. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1075. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1076. }
  1077. else if(PizzaD[playerid] == 4)
  1078. {
  1079. PizzaD[playerid] = 5;
  1080. lz_TogglePlayerControllable(playerid, 0);
  1081. cp_SetPlayerCheckpoint(playerid, 2253.2708,-1227.2740,24.0537, 5.0);
  1082. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1083. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1084. }
  1085. else if(PizzaD[playerid] == 5)
  1086. {
  1087. PizzaD[playerid] = 6;
  1088. lz_TogglePlayerControllable(playerid, 0);
  1089. cp_SetPlayerCheckpoint(playerid, 2049.8210,-1129.0643,24.1344, 5.0);
  1090. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1091. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1092. }
  1093. else if(PizzaD[playerid] == 6)
  1094. {
  1095. PizzaD[playerid] = 7;
  1096. lz_TogglePlayerControllable(playerid, 0);
  1097. cp_SetPlayerCheckpoint(playerid, 1533.5538,-1154.5741,24.0703, 5.0);
  1098. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1099. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1100. }
  1101. else if(PizzaD[playerid] == 7)
  1102. {
  1103. PizzaD[playerid] = 8;
  1104. lz_TogglePlayerControllable(playerid, 0);
  1105. cp_SetPlayerCheckpoint(playerid, 1447.3707,-1413.3026,13.5397, 5.0);
  1106. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1107. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1108. }
  1109. else if(PizzaD[playerid] == 8)
  1110. {
  1111. PizzaD[playerid] = 9;
  1112. lz_TogglePlayerControllable(playerid, 0);
  1113. cp_SetPlayerCheckpoint(playerid, 1259.9788,-1565.3793,13.6036, 5.0);
  1114. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1115. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1116. }
  1117. else if(PizzaD[playerid] == 9)
  1118. {
  1119. PizzaD[playerid] = 10;
  1120. lz_TogglePlayerControllable(playerid, 0);
  1121. cp_SetPlayerCheckpoint(playerid, 1447.0779,-1878.3301,13.5646, 5.0);
  1122. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1123. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1124. }
  1125. else if(PizzaD[playerid] == 10)
  1126. {
  1127. PizzaD[playerid] = 11;
  1128. lz_TogglePlayerControllable(playerid, 0);
  1129. cp_SetPlayerCheckpoint(playerid, 1855.9957,-1927.1121,13.5469, 5.0);
  1130. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1131. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1132. }
  1133. else if(PizzaD[playerid] == 11)
  1134. {
  1135. PizzaD[playerid] = 12;
  1136. lz_TogglePlayerControllable(playerid, 0);
  1137. cp_SetPlayerCheckpoint(playerid, 2095.6030,-1794.8781,13.4084, 5.0);
  1138. SetTimerEx("PizzaFreeze", 8000, false, "i", playerid);
  1139. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da biste istovarili nekoliko kutija pizze.");
  1140. }
  1141. else if(PizzaD[playerid] == 12)
  1142. {
  1143. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1144. PZavrsio[playerid] = 0;
  1145. KillTimer(PZavrsioTimer[playerid]);
  1146. PizzaD[playerid] = 0;
  1147. lz_DisablePlayerCheckpoint(playerid);
  1148. new novac = random(150)+3300;
  1149. #if NEWBIES_MONTH == 1
  1150. if(PI[playerid][pLevel] < 10)
  1151. {
  1152. novac += novac/3;
  1153. }
  1154. #endif
  1155. if(HappyJob == 1)
  1156. {
  1157. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Paketi pizze istovareni, posao zavrsen. Dodato na platu: 2x$%d jer je upaljen happyjob na ovom poslu.",novac);
  1158. PI[playerid][pPlata] += novac*2;
  1159. }
  1160. else
  1161. {
  1162. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Paketi pizze istovareni, posao zavrsen. Dodato na platu: $%d.",novac);
  1163. PI[playerid][pPlata] += novac;
  1164. }
  1165. SCM(playerid, -1, "Ako zelis ponovo da zapocnes posao - /startpizza.");
  1166. PlayerJobFirmaNovac(playerid, VRSTA_PIZZAD, novac/4);
  1167. UltraPlata(playerid, 700);
  1168. }
  1169. }
  1170. }
  1171. return true;
  1172. }
  1173.  
  1174. if(PI[playerid][pJob] == 4)
  1175. {
  1176. if(TaxiVozilo(GetPlayerVehicleID(playerid)))
  1177. {
  1178. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1179. {
  1180. if(TaxiD[playerid] == 1)
  1181. {
  1182. TaxiD[playerid] = 2;
  1183. lz_TogglePlayerControllable(playerid, 0);
  1184. cp_SetPlayerCheckpoint(playerid, 2348.0698,-1157.2324,26.9272, 5.0);
  1185. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1186. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1187. }
  1188. else if(TaxiD[playerid] == 2)
  1189. {
  1190. TaxiD[playerid] = 3;
  1191. lz_TogglePlayerControllable(playerid, 0);
  1192. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1193. new skinjara = random(300)+1;
  1194. JobActor[playerid] = CreateActor(skinjara, 2140.0911,-992.9814,60.9827,250);
  1195. cp_SetPlayerCheckpoint(playerid, 2141.5439,-996.5643,61.0180, 5.0);
  1196. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1197. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1198. }
  1199. else if(TaxiD[playerid] == 3)
  1200. {
  1201. TaxiD[playerid] = 4;
  1202. lz_TogglePlayerControllable(playerid, 0);
  1203. cp_SetPlayerCheckpoint(playerid, 1435.1112,-1157.4469,23.4348, 5.0);
  1204. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1205. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1206. }
  1207. else if(TaxiD[playerid] == 4)
  1208. {
  1209. TaxiD[playerid] = 5;
  1210. lz_TogglePlayerControllable(playerid, 0);
  1211. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1212. new skinjara = random(300)+1;
  1213. JobActor[playerid] = CreateActor(skinjara, 1231.9708,-1033.1023,31.9343,270);
  1214. cp_SetPlayerCheckpoint(playerid, 1235.6069,-1036.3569,31.5146, 5.0);
  1215. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1216. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1217. }
  1218. else if(TaxiD[playerid] == 5)
  1219. {
  1220. TaxiD[playerid] = 6;
  1221. lz_TogglePlayerControllable(playerid, 0);
  1222. cp_SetPlayerCheckpoint(playerid, 914.4551,-1368.9473,12.9853, 5.0);
  1223. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1224. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1225. }
  1226. else if(TaxiD[playerid] == 6)
  1227. {
  1228. TaxiD[playerid] = 7;
  1229. lz_TogglePlayerControllable(playerid, 0);
  1230. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1231. new skinjara = random(300)+1;
  1232. JobActor[playerid] = CreateActor(skinjara, 819.4582,-1624.8467,13.5469,320);
  1233. cp_SetPlayerCheckpoint(playerid, 825.1093,-1623.4854,13.1612, 5.0);
  1234. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1235. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1236. }
  1237. else if(TaxiD[playerid] == 7)
  1238. {
  1239. TaxiD[playerid] = 8;
  1240. lz_TogglePlayerControllable(playerid, 0);
  1241. cp_SetPlayerCheckpoint(playerid, 1281.3479,-1854.8711,13.1672, 5.0);
  1242. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1243. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1244. }
  1245. else if(TaxiD[playerid] == 8)
  1246. {
  1247. TaxiD[playerid] = 9;
  1248. lz_TogglePlayerControllable(playerid, 0);
  1249. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1250. new skinjara = random(300)+1;
  1251. JobActor[playerid] = CreateActor(skinjara, 1524.2245,-1738.1558,13.5469,85);
  1252. cp_SetPlayerCheckpoint(playerid, 1521.0309,-1735.1096,13.1612, 5.0);
  1253. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1254. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1255. }
  1256. else if(TaxiD[playerid] == 9)
  1257. {
  1258. TaxiD[playerid] = 10;
  1259. lz_TogglePlayerControllable(playerid, 0);
  1260. cp_SetPlayerCheckpoint(playerid, 2284.2700,-1896.7229,13.1633, 5.0);
  1261. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1262. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1263. }
  1264. else if(TaxiD[playerid] == 10)
  1265. {
  1266. TaxiD[playerid] = 11;
  1267. lz_TogglePlayerControllable(playerid, 0);
  1268. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1269. new skinjara = random(300)+1;
  1270. JobActor[playerid] = CreateActor(skinjara, 1839.5309,-2160.8938,13.5469,266);
  1271. cp_SetPlayerCheckpoint(playerid, 1844.1984,-2163.9031,13.1629, 5.0);
  1272. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1273. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1274. }
  1275. else if(TaxiD[playerid] == 11)
  1276. {
  1277. TaxiD[playerid] = 12;
  1278. lz_TogglePlayerControllable(playerid, 0);
  1279. cp_SetPlayerCheckpoint(playerid, 1262.9005,-1355.4745,13.0137, 5.0);
  1280. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1281. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1282. }
  1283. else if(TaxiD[playerid] == 12)
  1284. {
  1285. TaxiD[playerid] = 13;
  1286. lz_TogglePlayerControllable(playerid, 0);
  1287. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1288. new skinjara = random(300)+1;
  1289. JobActor[playerid] = CreateActor(skinjara, 1217.7430,-949.6080,42.8427,100);
  1290. cp_SetPlayerCheckpoint(playerid, 1213.0420,-948.3849,42.4582, 5.0);
  1291. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1292. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1293. }
  1294. else if(TaxiD[playerid] == 13)
  1295. {
  1296. TaxiD[playerid] = 14;
  1297. lz_TogglePlayerControllable(playerid, 0);
  1298. cp_SetPlayerCheckpoint(playerid, 1712.7341,-1327.2649,13.1605, 5.0);
  1299. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1300. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1301. }
  1302. else if(TaxiD[playerid] == 14)
  1303. {
  1304. TaxiD[playerid] = 15;
  1305. lz_TogglePlayerControllable(playerid, 0);
  1306. if(IsValidActor(JobActor[playerid])) DestroyActor(JobActor[playerid]);
  1307. new skinjara = random(300)+1;
  1308. JobActor[playerid] = CreateActor(skinjara, 1857.5442,-1406.6193,13.5625,180);
  1309. cp_SetPlayerCheckpoint(playerid, 1855.2213,-1410.3656,13.1687, 5.0);
  1310. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1311. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte da stranka izadje iz vozila, zatim se uputite na sledeci poziv (pratite crveni marker).");
  1312. }
  1313. else if(TaxiD[playerid] == 15)
  1314. {
  1315. TaxiD[playerid] = 16;
  1316. lz_TogglePlayerControllable(playerid, 0);
  1317. cp_SetPlayerCheckpoint(playerid, 2478.1689,-1506.7864,23.6066, 5.0);
  1318. SetTimerEx("TaxiFreeze", 5000, false, "i", playerid);
  1319. SCM(playerid, -1, "{007FFF}S » {FFFFFF}Sacekajte momenat da stranka udje u vozilo, zatim je odvezite na lokaciju.");
  1320. }
  1321. else if(TaxiD[playerid] == 16)
  1322. {
  1323. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1324. PZavrsio[playerid] = 0;
  1325. KillTimer(PZavrsioTimer[playerid]);
  1326. TaxiD[playerid] = 0;
  1327. lz_DisablePlayerCheckpoint(playerid);
  1328. new novac = random(500)+9000;
  1329. #if NEWBIES_MONTH == 1
  1330. if(PI[playerid][pLevel] < 10)
  1331. {
  1332. novac += novac/3;
  1333. }
  1334. #endif
  1335. if(HappyJob == 4)
  1336. {
  1337. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Ruta zavrsena. Dodato na platu: 2x$%d jer je upaljen happyjob na ovom poslu.",novac);
  1338. PI[playerid][pPlata] += novac*2;
  1339. }
  1340. else
  1341. {
  1342. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Ruta zavrsena. Dodato na platu: $%d.",novac);
  1343. PI[playerid][pPlata] += novac;
  1344. }
  1345. SCM(playerid, -1, "Ako zelis ponovo da zapocnes rutu, vrati se do taxi baze i upisi /starttaxi.");
  1346. PlayerJobFirmaNovac(playerid, VRSTA_TAXI, novac/4);
  1347. PI[playerid][pSkillTaxi]++;
  1348. JobSkill(playerid);
  1349. if(PI[playerid][pSkillTaxi] < 10) { }
  1350. else if(PI[playerid][pSkillTaxi] < 25)
  1351. {
  1352. PI[playerid][pPlata] += 200;
  1353. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $200 na platu! (/skills - za sledeci skill level)");
  1354. }
  1355. else if(PI[playerid][pSkillTaxi] < 35)
  1356. {
  1357. PI[playerid][pPlata] += 450;
  1358. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $400 na platu! (/skills - za sledeci skill level)");
  1359. }
  1360. else if(PI[playerid][pSkillTaxi] < 50)
  1361. {
  1362. PI[playerid][pPlata] += 700;
  1363. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $600 na platu! (/skills - za sledeci skill level)");
  1364. }
  1365. else
  1366. {
  1367. PI[playerid][pPlata] += 950;
  1368. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $950 na platu! (/skills)");
  1369. }
  1370. UltraPlata(playerid, 800);
  1371. }
  1372. }
  1373. }
  1374. return true;
  1375. }
  1376.  
  1377. if(PI[playerid][pJob] == 2)
  1378. {
  1379. if(ATMAuto(carid) && GetPlayerState(playerid) == PL_ST_DRIVER)
  1380. {
  1381. AtmD[playerid]++;
  1382. if(atmtura[playerid] == 1 && AtmD[playerid] == 15)
  1383. {
  1384. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1385. PZavrsio[playerid] = 0;
  1386. KillTimer(PZavrsioTimer[playerid]);
  1387. new dnovac = random(500)+4850;
  1388. #if NEWBIES_MONTH == 1
  1389. if(PI[playerid][pLevel] < 10)
  1390. {
  1391. dnovac += dnovac/3;
  1392. }
  1393. #endif
  1394. PlayerJobFirmaNovac(playerid, VRSTA_ATM, dnovac/4);
  1395. new novac = random(200)+700;
  1396. AI[AtmD[playerid]-1][aNovac] += novac;
  1397. ATMLabelUpdate(AtmD[playerid]-1);
  1398. SacuvajAtm(AtmD[playerid]-1);
  1399. new struk[128];
  1400. format(struk,128,"~y~$%d ubaceno u atm!",novac);
  1401. GameTextForPlayer(playerid, struk, 5000, 4);
  1402. AtmD[playerid] = 9999;
  1403. atmtura[playerid] = 0;
  1404. lz_DisablePlayerCheckpoint(playerid);
  1405. SaveAccount(playerid);
  1406. PI[playerid][pSkillATM]++;
  1407. if(HappyJob == 2)
  1408. {
  1409. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu 2x$%d jer je upaljen happyjob na ovom poslu. (/skills)",dnovac);
  1410. PI[playerid][pPlata] += dnovac*2;
  1411. }
  1412. else
  1413. {
  1414. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu $%d. (/skills)",dnovac);
  1415. PI[playerid][pPlata] += dnovac;
  1416. }
  1417. JobSkill(playerid);
  1418. if(PI[playerid][pSkillATM] < 10) { }
  1419. else if(PI[playerid][pSkillATM] < 25)
  1420. {
  1421. PI[playerid][pPlata] += 200;
  1422. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $200 na platu! (/skills - za sledeci skill level)");
  1423. }
  1424. else if(PI[playerid][pSkillATM] < 35)
  1425. {
  1426. PI[playerid][pPlata] += 450;
  1427. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $450 na platu! (/skills - za sledeci skill level)");
  1428. }
  1429. else if(PI[playerid][pSkillATM] < 50)
  1430. {
  1431. PI[playerid][pPlata] += 700;
  1432. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $700 na platu! (/skills - za sledeci skill level)");
  1433. }
  1434. else
  1435. {
  1436. PI[playerid][pPlata] += 950;
  1437. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $950 na platu! (/skills)");
  1438. }
  1439. UltraPlata(playerid, 800);
  1440. SPD(playerid, D_ATM, DSM, "{1A94E6}ATM Dostavljac", "{FFFFFF}Da li zelite da zapocnete prevoz novca\nu atm bankomate?", "Da", "Ne");
  1441. SaveAccount(playerid);
  1442. return true;
  1443. }
  1444. if(atmtura[playerid] == 2 && AtmD[playerid] == 27)
  1445. {
  1446. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1447. PZavrsio[playerid] = 0;
  1448. KillTimer(PZavrsioTimer[playerid]);
  1449. new dnovac = random(500)+6500;
  1450. #if NEWBIES_MONTH == 1
  1451. if(PI[playerid][pLevel] < 10)
  1452. {
  1453. dnovac += dnovac/3;
  1454. }
  1455. #endif
  1456. PlayerJobFirmaNovac(playerid, VRSTA_ATM, dnovac/4);
  1457. new novac = random(200)+700;
  1458. AI[AtmD[playerid]-1][aNovac] += novac;
  1459. ATMLabelUpdate(AtmD[playerid]-1);
  1460. SacuvajAtm(AtmD[playerid]-1);
  1461. new struk[128];
  1462. format(struk,128,"~y~$%d ubaceno u atm!",novac);
  1463. GameTextForPlayer(playerid, struk, 5000, 4);
  1464. AtmD[playerid] = 9999;
  1465. atmtura[playerid] = 0;
  1466. lz_DisablePlayerCheckpoint(playerid);
  1467. SaveAccount(playerid);
  1468. PI[playerid][pSkillATM]++;
  1469. if(HappyJob == 2)
  1470. {
  1471. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu 2x$%d jer je upaljen happyjob na ovom poslu. (/skills)",dnovac);
  1472. PI[playerid][pPlata] += dnovac*2;
  1473. }
  1474. else
  1475. {
  1476. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu $%d. (/skills)",dnovac);
  1477. PI[playerid][pPlata] += dnovac;
  1478. }
  1479. JobSkill(playerid);
  1480. if(PI[playerid][pSkillATM] < 10) { }
  1481. else if(PI[playerid][pSkillATM] < 25)
  1482. {
  1483. PI[playerid][pPlata] += 300;
  1484. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $300 na platu! (/skills - za sledeci skill level)");
  1485. }
  1486. else if(PI[playerid][pSkillATM] < 35)
  1487. {
  1488. PI[playerid][pPlata] += 600;
  1489. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $600 na platu! (/skills - za sledeci skill level)");
  1490. }
  1491. else if(PI[playerid][pSkillATM] < 50)
  1492. {
  1493. PI[playerid][pPlata] += 900;
  1494. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $900 na platu! (/skills - za sledeci skill level)");
  1495. }
  1496. else
  1497. {
  1498. PI[playerid][pPlata] += 1200;
  1499. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $1200 na platu! (/skills)");
  1500. }
  1501. UltraPlata(playerid, 1050);
  1502. SPD(playerid, D_ATM, DSM, "{1A94E6}ATM Dostavljac", "{FFFFFF}Da li zelite da zapocnete prevoz novca\nu atm bankomate?", "Da", "Ne");
  1503. SaveAccount(playerid);
  1504. return true;
  1505. }
  1506. if(atmtura[playerid] == 3 && AtmD[playerid] == 45)
  1507. {
  1508. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1509. PZavrsio[playerid] = 0;
  1510. KillTimer(PZavrsioTimer[playerid]);
  1511. new dnovac = random(500)+8750;
  1512. #if NEWBIES_MONTH == 1
  1513. if(PI[playerid][pLevel] < 10)
  1514. {
  1515. dnovac += dnovac/3;
  1516. }
  1517. #endif
  1518. PlayerJobFirmaNovac(playerid, VRSTA_ATM, dnovac/4);
  1519. new novac = random(200)+700;
  1520. AI[AtmD[playerid]-1][aNovac] += novac;
  1521. ATMLabelUpdate(AtmD[playerid]-1);
  1522. SacuvajAtm(AtmD[playerid]-1);
  1523. new struk[128];
  1524. format(struk,128,"~y~$%d ubaceno u atm!",novac);
  1525. GameTextForPlayer(playerid, struk, 5000, 4);
  1526. AtmD[playerid] = 9999;
  1527. atmtura[playerid] = 0;
  1528. lz_DisablePlayerCheckpoint(playerid);
  1529. SaveAccount(playerid);
  1530. PI[playerid][pSkillATM]++;
  1531. if(HappyJob == 2)
  1532. {
  1533. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu 2x$%d jer je upaljen happyjob na ovom poslu. (/skills)",dnovac);
  1534. PI[playerid][pPlata] += dnovac*2;
  1535. }
  1536. else
  1537. {
  1538. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu $%d. (/skills)",dnovac);
  1539. PI[playerid][pPlata] += dnovac;
  1540. }
  1541. JobSkill(playerid);
  1542. if(PI[playerid][pSkillATM] < 10) { }
  1543. else if(PI[playerid][pSkillATM] < 25)
  1544. {
  1545. PI[playerid][pPlata] += 350;
  1546. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $350 na platu! (/skills - za sledeci skill level)");
  1547. }
  1548. else if(PI[playerid][pSkillATM] < 35)
  1549. {
  1550. PI[playerid][pPlata] += 700;
  1551. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $700 na platu! (/skills - za sledeci skill level)");
  1552. }
  1553. else if(PI[playerid][pSkillATM] < 50)
  1554. {
  1555. PI[playerid][pPlata] += 1050;
  1556. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $1050 na platu! (/skills - za sledeci skill level)");
  1557. }
  1558. else
  1559. {
  1560. PI[playerid][pPlata] += 1400;
  1561. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $1400 na platu! (/skills)");
  1562. }
  1563. UltraPlata(playerid, 2000);
  1564. SPD(playerid, D_ATM, DSM, "{1A94E6}ATM Dostavljac", "{FFFFFF}Da li zelite da zapocnete prevoz novca\nu atm bankomate?", "Da", "Ne");
  1565. SaveAccount(playerid);
  1566. return true;
  1567. }
  1568. if(atmtura[playerid] == 4 && AtmD[playerid] == 55)
  1569. {
  1570. if(PZavrsio[playerid] == 1) return NijeZavrsio(playerid);
  1571. PZavrsio[playerid] = 0;
  1572. KillTimer(PZavrsioTimer[playerid]);
  1573. new dnovac = random(500)+11500;
  1574. #if NEWBIES_MONTH == 1
  1575. if(PI[playerid][pLevel] < 10)
  1576. {
  1577. dnovac += dnovac/3;
  1578. }
  1579. #endif
  1580. PlayerJobFirmaNovac(playerid, VRSTA_ATM, dnovac/4);
  1581. new novac = random(200)+700;
  1582. AI[AtmD[playerid]-1][aNovac] += novac;
  1583. ATMLabelUpdate(AtmD[playerid]-1);
  1584. SacuvajAtm(AtmD[playerid]-1);
  1585. new struk[128];
  1586. format(struk,128,"~y~$%d ubaceno u atm!",novac);
  1587. GameTextForPlayer(playerid, struk, 5000, 4);
  1588. AtmD[playerid] = 9999;
  1589. atmtura[playerid] = 0;
  1590. lz_DisablePlayerCheckpoint(playerid);
  1591. SaveAccount(playerid);
  1592. PI[playerid][pSkillATM]++;
  1593. if(HappyJob == 2)
  1594. {
  1595. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu 2x$%d jer je upaljen happyjob na ovom poslu. (/skills)",dnovac);
  1596. PI[playerid][pPlata] += dnovac*2;
  1597. }
  1598. else
  1599. {
  1600. SCMF(playerid, -1, "{007FFF}S » {FFFFFF}Zavrsili ste turu prevoza novca u ATMove. Dodato na platu $%d. (/skills)",dnovac);
  1601. PI[playerid][pPlata] += dnovac;
  1602. }
  1603. JobSkill(playerid);
  1604. if(PI[playerid][pSkillATM] < 10) { }
  1605. else if(PI[playerid][pSkillATM] < 25)
  1606. {
  1607. PI[playerid][pPlata] += 400;
  1608. SCMF(playerid, -1, "Posto vam je skill ovog posla 2, dobili ste bonus od $400 na platu! (/skills - za sledeci skill level)");
  1609. }
  1610. else if(PI[playerid][pSkillATM] < 35)
  1611. {
  1612. PI[playerid][pPlata] += 800;
  1613. SCMF(playerid, -1, "Posto vam je skill ovog posla 3, dobili ste bonus od $800 na platu! (/skills - za sledeci skill level)");
  1614. }
  1615. else if(PI[playerid][pSkillATM] < 50)
  1616. {
  1617. PI[playerid][pPlata] += 1200;
  1618. SCMF(playerid, -1, "Posto vam je skill ovog posla 4, dobili ste bonus od $1200 na platu! (/skills - za sledeci skill level)");
  1619. }
  1620. else
  1621. {
  1622. PI[playerid][pPlata] += 1600;
  1623. SCMF(playerid, -1, "Posto vam je skill ovog posla 5 (maksimalan), dobili ste bonus od $1600 na platu! (/skills)");
  1624. }
  1625. UltraPlata(playerid, 2500);
  1626. SPD(playerid, D_ATM, DSM, "{1A94E6}ATM Dostavljac", "{FFFFFF}Da li zelite da zapocnete prevoz novca\nu atm bankomate?", "Da", "Ne");
  1627. SaveAccount(playerid);
  1628. return true;
  1629. }
  1630. if(AtmD[playerid] != 9999)
  1631. {
  1632. lz_TogglePlayerControllable(playerid, 0);
  1633. cp_SetPlayerCheckpoint(playerid, AI[AtmD[playerid]][aAtmX], AI[AtmD[playerid]][aAtmY], AI[AtmD[playerid]][aAtmZ], 5.0);
  1634. SetTimerEx("AtmFreeze", 8000, false, "i", playerid);
  1635. GameTextForPlayer(playerid, "~b~Sacekajte momenat...", 8500, 3);
  1636. return true;
  1637. }
  1638. }
  1639. return true;
  1640. }
  1641. lz_DisablePlayerCheckpoint(playerid);
  1642. return true;
  1643. }
RAW Paste Data