Advertisement
Guest User

Untitled

a guest
Jun 9th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.93 KB | None | 0 0
  1. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2. {
  3. /////////////////////////////////////////////////////////KEY HANDBRAKE///////////////////////////////////////////////////
  4.  
  5.  
  6. if((newkeys & (KEY_FIRE | KEY_CROUCH)) == (KEY_FIRE | KEY_CROUCH) && (oldkeys & (KEY_FIRE | KEY_CROUCH)) != (KEY_FIRE | KEY_CROUCH))
  7. {
  8. new weapon = GetPlayerWeapon(playerid);
  9. if(weapon == 24)
  10. {
  11. ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
  12. GMT(playerid, "~r~Ne smete da radite C-BUG !", 5000, 1);
  13. }
  14. }
  15. if(PRESSED(KEY_ACTION))
  16. {
  17. if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
  18. {
  19. new Float:Poz[5];
  20. GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]); //
  21. ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
  22. GMT(playerid, "~n~~n~~n~~n~~n~~n~~g~~h~~h~Zabranjeno je skakanje Biciklom !", 5000, 3);
  23. Dimi_SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]+0.7);
  24. }
  25. }
  26. if(newkeys & KEY_NO)
  27. {
  28. if(RadiPosao[playerid] == 1)
  29. {
  30.  
  31. if(PostarCP[playerid] == 1 && PI[playerid][pPosao] == 2)
  32. {
  33. new Float:vehPos[ 3 ];
  34. getPosBehindVehicle( vehicleposta[playerid], vehPos[0], vehPos[1], vehPos[2], 0.0 );
  35. {
  36. if( IsPlayerInRangeOfPoint( playerid, 2.0, vehPos[0], vehPos[1], vehPos[2 ] ) )
  37. {
  38. if(!IsPlayerInAnyVehicle(playerid))
  39. {
  40. LoopingAnim(playerid, "CARRY", "crry_prtial", 4.1, 0, 1, 1, 1, 1);
  41. SetPlayerAttachedObject( playerid, KANTICA, 1577, 1, 0.173749, 0.403454, -0.027724, 355.012145, 269.655853, 0.000000, 1.000000, 1.000000, 1.000000 ); // drug_yellow -
  42. UzeoPoscu[playerid] = 1;
  43. }
  44. }
  45. }
  46. }
  47.  
  48.  
  49. if(PI[playerid][pPosao] == 8 && Prikupsmeca[playerid] == 1 && SmecarCP[playerid] <=5)
  50. {
  51. if(!IsPlayerInAnyVehicle(playerid))
  52. {
  53. PlayerTimer[playerid][22] =SetTimerEx("PrikupSmeca",5000,false,"i",playerid);
  54. ClearAnimations(playerid);
  55. LoopingAnim(playerid,"MISC", "plunger_01", 2.0, 0, 0, 0, 0, 0);
  56. GMT(playerid,"Vadjenje smeca...",5000,3);
  57. Kupism[playerid] = 1;
  58. }
  59.  
  60. }
  61.  
  62. if(PI[playerid][pPosao] == 8 && StavljaKamion[playerid] == 1 && Prikupsmeca[playerid] == 0)
  63. {
  64. new Float:vehPos[ 3 ];
  65. if(!IsPlayerInAnyVehicle(playerid))
  66. getPosBehindVehicle( SmecarskoVozilo[playerid], vehPos[0], vehPos[1], vehPos[2], 0.0 );
  67. if(IsPlayerInRangeOfPoint(playerid,2,vehPos[0],vehPos[1], vehPos[2]))
  68. {
  69. ClearAnimations(playerid);
  70. RemovePlayerAttachedObject(playerid,0);
  71. DisablePlayerCheckpoint(playerid);
  72. StavljaKamion[playerid] = 0;
  73. DisablePlayerCheckpoint(playerid);
  74. SmecarCP[playerid] ++;
  75. if(SmecarCP[playerid] <=5)
  76. {
  77. new rand = random(sizeof(gKontejneri));
  78. SetPlayerCheckpoint(playerid,gKontejneri[rand][0],gKontejneri[rand][1],gKontejneri[rand][2],2);
  79. SCM(playerid,-1,""GREEN"[Prikup Smeca] "BELA" Sada idite do sledeceg kontjenera i prikupite smece !");
  80. }
  81.  
  82. if(SmecarCP[playerid] == 6)
  83. {
  84. SetPlayerCheckpoint(playerid,2179.2932,-1991.6892,13.5469,5);
  85. SCM(playerid,-1,""GREEN"[Prikup Smeca] "BELA" Sada idite do deponije i ispraznite kamion !");
  86. }
  87. }
  88.  
  89. }
  90.  
  91.  
  92. if(PizzaCP[playerid] == 1 && PI[playerid][pPosao] == 3)
  93. {
  94. new Float:vehPos[ 3 ];
  95. getPosBehindVehicle( vehiclepizza[playerid], vehPos[0], vehPos[1], vehPos[2], 0.0 );
  96. {
  97. if( IsPlayerInRangeOfPoint( playerid, 2.0, vehPos[0], vehPos[1], vehPos[2 ] ) )
  98. {
  99. if(!IsPlayerInAnyVehicle(playerid))
  100. {
  101. SetPlayerAttachedObject( playerid, KANTICA, 1582, 1, 0.006999, 0.539000, 0.014999, 0.000000,94.099998,0.000000, 1.000000,1.000000,1.000000, 0, 0 );
  102. LoopingAnim(playerid, "CARRY", "crry_prtial", 4.1, 0, 1, 1, 1, 1);
  103. UzeoPizzu[playerid] = 1;
  104. }
  105. }
  106. }
  107. }
  108.  
  109. }
  110. }
  111.  
  112. if(!IsPlayerInAnyVehicle(playerid) && newkeys & KEY_JUMP && KEY_SPRINT && GetSpeed(playerid) > 1 )
  113. {
  114. bhop[playerid] ++;
  115. PlayerTimer[playerid][23] =SetTimerEx("BhRestart", 4000, false, "i", playerid);
  116. if(bhop[playerid] == 4)
  117. {
  118. new string[120];
  119. ApplyAnimation(playerid,"PED","IDLE_tired",3.0,0,1,1,0,5000,1);
  120. format(string, sizeof(string), "{FF7171}[BUNNY HOP] Skocili ste vise puta dok ste trcali uganuli ste clanak !");
  121. SCM(playerid, -1, string);
  122. PlayerTimer[playerid][24] =SetTimerEx("SkokoviBH", 5000, false, "i", playerid);
  123. UganuoClanak[playerid] = 1;
  124. }
  125. }
  126. if(newkeys & KEY_SECONDARY_ATTACK)
  127. {
  128.  
  129. if(ImaLisice[playerid] == 1 || Oboren[playerid] == 1 || Zavezan[playerid] == 1|| IgracTazovan[playerid] == 1 || MrtavIgrac[playerid] == 1)
  130. {
  131. SCM(playerid,grey,"Ne mozete stiskati F za izlazak/ulazak iz objekta dok ste /tazovani/oboreni/uhapseni/vezani u animaciji !");
  132. return 1;
  133. }
  134. if(!IsPlayerInAnyVehicle(playerid))
  135. {
  136.  
  137. for(new i; i < MAX_HOUSE; i++)
  138. {
  139. if(IsPlayerInRangeOfPoint(playerid, 3.0, KucaInfo[i][kUlazX], KucaInfo[i][kUlazY], KucaInfo[i][kUlazZ]))
  140. {
  141.  
  142. if(PlayerInfo[playerid][pPosedovanjeKuce] == i || PI[playerid][pRent] == i || KucaInfo[i][kZatvoreno] == 0)
  143.  
  144. {
  145.  
  146. SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
  147. SetPlayerInterior(playerid, KucaInfo[i][kInt]);
  148. Dimi_SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
  149. PlayerInfo[playerid][pInt] = 1;
  150. SetPlayerWeather(playerid, 1);
  151. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  152. TogglePlayerControllable(playerid, 0);
  153. if(Snegic == 1)
  154. {
  155. DeleteSnow(playerid);
  156. }
  157. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  158. {
  159. if(KucaInfo[i][kNeaktivnost] >=1)
  160. if(PlayerInfo[playerid][pPosedovanjeKuce] == i)
  161. {
  162. KucaInfo[i][kNeaktivnost] = 0;
  163. SacuvajKucu(i);
  164. SCM(playerid,-1,"Restartovali ste neaktvinost vase kuce !");
  165. KuceLP(i);
  166. }
  167. }
  168.  
  169.  
  170. }
  171. else
  172. {
  173.  
  174.  
  175. GMT(playerid,"~r~ZAKLJUCANO",4000,1);
  176. return 1;
  177.  
  178. }
  179.  
  180. }
  181. else if(IsPlayerInRangeOfPoint(playerid, 3.0, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]) && GetPlayerVirtualWorld(playerid) == KucaInfo[i][kVW])
  182. {
  183. SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
  184. Dimi_SetPlayerPos(playerid, KucaInfo[i][kUlazX], KucaInfo[i][kUlazY], KucaInfo[i][kUlazZ]);
  185. PlayerInfo[playerid][pInt] = 0;
  186. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  187. if(PI[playerid][pVremenska] == 1)
  188. {
  189. if(Snegic == 1)
  190. {
  191. CreateSnow(playerid);
  192. }
  193. SetPlayerWeather(playerid, Prognozasys);
  194.  
  195. }
  196. }
  197.  
  198.  
  199.  
  200.  
  201. }
  202. }
  203. }
  204.  
  205.  
  206.  
  207.  
  208. //keywalk
  209. if(newkeys & KEY_WALK)
  210. {
  211.  
  212. if(IsPlayerInRangeOfPoint(playerid,7.0,1582.53638, -1637.94421, 12.25903))
  213. {
  214. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] <= 4)
  215. {
  216. if(OtvorenaVrata == 1) return SCM(playerid,grey,"Vrata su vec otvorena sacekajte 7 sekundi !");
  217. {
  218. MoveDynamicObject(pdvrata, 1581.13635, -1637.94421, 12.25900 ,3);//DESNA
  219. new string[120];
  220. SCM(playerid,-1,"Otvorili ste vrata policijske garaze zatvorice se automatski za 7 sekundi !");
  221. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju policijske garaze.", GetName(playerid));
  222. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  223. SetTimer("Zpdvrata", 7000, 0);
  224. OtvorenaVrata = 1;
  225. }
  226. }
  227. }
  228.  
  229. if(IsPlayerInRangeOfPoint(playerid,4.0,239.5169, 117.9142, 1002.2133))
  230. {
  231. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 4)
  232. {
  233. if(OtvorenaS == 1) return SCM(playerid,grey,"Vrata su vec otvorena sacekajte 7 sekundi !");
  234. {
  235. MoveDynamicObject(spvrata, 239.5169, 116.6742, 1002.2133 ,3);//DESNA
  236. new string[120];
  237. SCM(playerid,-1,"Otvorili ste vrata Saobracajne policije zatvorice se automatski za 7 sekundi !");
  238. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata Saobaracjane policije.", GetName(playerid));
  239. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  240. SetTimer("Zspvrata", 5000, 0);
  241. OtvorenaS = 1;
  242. }
  243. }
  244. }
  245.  
  246.  
  247.  
  248. if(IsPlayerInRangeOfPoint(playerid,4.0,245.8281, 72.5515, 1002.6397))
  249. {
  250. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 1 || PlayerInfo[playerid][pOrgID] == 2)
  251. {
  252. if(OtvorenaPD == 1) return SCM(playerid,grey,"Vrata su vec otvorena sacekajte 7 sekundi !");
  253. {
  254. MoveDynamicObject(pdgate, 247.1881, 72.5315, 1002.6397 ,3);//DESNA
  255. new string[120];
  256. SCM(playerid,-1,"Otvorili ste vrata Policijske uprave zatvorice se automatski za 7 sekundi !");
  257. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata Policijske uprave.", GetName(playerid));
  258. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  259. SetTimer("Zvratapd", 5000, 0);
  260. OtvorenaPD = 1;
  261. }
  262. }
  263. }
  264.  
  265. if(IsPlayerInRangeOfPoint(playerid,10.0,-669.0455, 923.8087, 12.7896))
  266. {
  267. if(PlayerInfo[playerid][pAdmin] == 1341 || PI[playerid][pPosedovanjeKuce] == 991)
  268. {
  269. if(OtvorenaMarkela2 == 1) return SCM(playerid,grey,"Sporedna Kapija kuce je vec otvorena sacekajte 7 sekundi !");
  270. {
  271. new string[100];
  272. MoveDynamicObject(markelagate2, -666.62622, 923.94635, 12.78959,2.0);
  273. SCM(playerid,-1,"Otvorili ste sporedna vrata kuce zatvorice se automatski za 7 sekundi !");
  274. format(string, sizeof(string), "* %s Vadi svoj Daljinski i otvara sporedna vrata dvorista", GetName(playerid));
  275. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  276. SetTimer("ZMarkela2", 7000, 0);
  277. OtvorenaMarkela2 = 1;
  278. return 1;
  279. }
  280. }
  281. }
  282. /////SAJ 1 GATE
  283. if(IsPlayerInRangeOfPoint(playerid,4.0,294.47754, 189.31209, 1006.17004))
  284. {
  285. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
  286. {
  287. if(Otvorenasaj1 == 1) return SCM(playerid,grey,"Vrata 1 saja su vec otvorena sacekajte 7 sekundi !");
  288. {
  289. MoveDynamicObject(Sajgate1, 294.47754, 189.31209, 1006.17004 ,2);//DESNA
  290. new string[120];
  291. SCM(playerid,-1,"Otvorili ste vrata 1 Saja zatvorice se automatski za 7 sekundi !");
  292. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata 1 Saj uprave.", GetName(playerid));
  293. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  294. SetTimer("Zvratasaj1", 5000, 0);
  295. Otvorenasaj1 = 1;
  296. }
  297. }
  298. }
  299.  
  300. /////SAJ 2 GATE
  301. if(IsPlayerInRangeOfPoint(playerid,4.0,230.69368, 169.86789, 1002.06116))
  302. {
  303. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
  304. {
  305. if(Otvorenasaj2 == 1) return SCM(playerid,grey,"Vrata 2 saja su vec otvorena sacekajte 7 sekundi !");
  306. {
  307. MoveDynamicObject(Sajgate2, 230.69368, 169.86789, 999.50867,2);//DESNA
  308. new string[120];
  309. SCM(playerid,-1,"Otvorili ste vrata 2 Saja zatvorice se automatski za 5 sekundi !");
  310. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata 2 Saj uprave.", GetName(playerid));
  311. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  312. SetTimer("Zvratasaj2", 5000, 0);
  313. Otvorenasaj2 = 1;
  314. }
  315. }
  316. }
  317.  
  318. /////SAJ 3 GATE
  319. if(IsPlayerInRangeOfPoint(playerid,4.0,239.37364, 185.98979, 1002.29132))
  320. {
  321. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
  322. {
  323. if(Otvorenasaj3 == 1) return SCM(playerid,grey,"Vrata 2 saja su vec otvorena sacekajte 7 sekundi !");
  324. {
  325. MoveDynamicObject(Sajgate3, 239.37364, 185.98979, 1002.29132,2);//DESNA
  326. new string[120];
  327. SCM(playerid,-1,"Otvorili ste vrata 3 Saja zatvorice se automatski za 5 sekundi !");
  328. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata 3 Saj uprave.", GetName(playerid));
  329. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  330. SetTimer("Zvratasaj3", 5000, 0);
  331. Otvorenasaj3 = 1;
  332. }
  333. }
  334. }
  335.  
  336.  
  337.  
  338.  
  339. }
  340.  
  341.  
  342.  
  343. if(newkeys & KEY_JUMP)
  344. {
  345. new vehicleid = GetPlayerVehicleID(playerid);
  346. if (!IsPlayerInAnyVehicle(playerid)) return 1;
  347. if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
  348. {
  349.  
  350. if(PlayerInfo[playerid][pAdmin] < 1338)
  351. {
  352. if(CarInfo[vehicleid][cProdaja] == 1) return SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
  353. }
  354.  
  355.  
  356. if(vehicleid >=509 && vehicleid <=MAX_VEHICLES)
  357. {
  358. if(PI[playerid][pAdmin] < 1339)
  359. {
  360. if(PI[playerid][pVeh1] !=vehicleid && PI[playerid][pVeh2] !=vehicleid && PI[playerid][pVeh3] !=vehicleid)
  361. {
  362.  
  363. return 1;
  364. }
  365. }
  366. }
  367.  
  368. for(new v=0;v<sizeof(rentveh);v++)
  369. {
  370. if(GetPlayerVehicleID(playerid) == rentveh[v])
  371. {
  372. if(RentaoVozilo[playerid] !=GetPlayerVehicleID(playerid))
  373. {
  374.  
  375. SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
  376. return 1;
  377. }
  378. }
  379. }
  380.  
  381.  
  382. if(! VoziloJeBicikla(GetVehicleModel(vehicleid)))
  383. {
  384. if(Fuel[GetPlayerVehicleID(playerid)] < 1) return SCM(playerid,grey, "Nemate goriva u vozilu pa ne mozete upaliti motor.");
  385. }
  386. {
  387. if(VoziloJeBicikla(GetVehicleModel(vehicleid))) return 1;
  388. {
  389.  
  390. if(PlayerInfo[playerid][pAdmin] < 1339)
  391. {
  392. if(CarInfo[vehicleid][cProdaja] == 1) return SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
  393. }
  394. if(vehicleid >=509 && vehicleid <=brojvozila)
  395. {
  396. if(PI[playerid][pAdmin] < 1339)
  397. {
  398. if(PI[playerid][pVeh1] !=vehicleid && PI[playerid][pVeh2] !=vehicleid && PI[playerid][pVeh3] !=vehicleid)
  399. {
  400. SCM(playerid,grey,"[Greska] Nemate kljuceve ovog vozila !");
  401. return 1;
  402. }
  403.  
  404. }
  405. }
  406.  
  407. for(new v=0;v<sizeof(rentveh);v++)
  408. {
  409. if(GetPlayerVehicleID(playerid) == rentveh[v])
  410. {
  411. if(RentaoVozilo[playerid] !=GetPlayerVehicleID(playerid))
  412. {
  413.  
  414. SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
  415. return 1;
  416. }
  417. }
  418. }
  419.  
  420. if(GetSpeed(playerid) < 1)
  421. if(vehEngine[vehicleid] == 0) // ako je motor vozila ugasen
  422. {
  423. new string[128];
  424.  
  425. new sendername[120];
  426. GetPlayerName(playerid, sendername, sizeof(sendername));
  427. vehEngine[vehicleid] = 1;
  428. PlayerTimer[playerid][26] =SetTimerEx("StartEngine", 1000, 0, "i", playerid);
  429. format(string, sizeof(string), "* %s okrece kljuc i pokusava da upali motor vozila.", sendername); // text
  430. ProxDetector(30.0, playerid, string, roza2, roza2, roza2, roza2, roza2);
  431. GMT(playerid, "~w~Motor se pokrece...",3500,3);
  432. engineOn[GetPlayerVehicleID(playerid)] == 1;
  433. }
  434.  
  435. }
  436. }
  437. }
  438.  
  439. }
  440.  
  441. if(newkeys & KEY_SPRINT)
  442. {
  443. if(IsPlayerInRangeOfPoint(playerid,3.0,377.5687,-67.5861,1001.5151))
  444. {
  445. SPD(playerid,DIALOG_BURGER,DSL,""LGREEN"Fast Food Burger","Pljeskavica "LGREEN"| 100$ |\n"BELA"Hamburger "LGREEN"| 150$ |\n"BELA"Cheeseburger "LGREEN"| 200$ |\n"BELA"Chickenburger "LGREEN"| 250$ |\n"BELA"Sis Cevap "LGREEN"| 130$ |\n"BELA"Palacinke "LGREEN"| 90$ |","Naruci","Odustani");
  446. }
  447. return 1;
  448. }
  449.  
  450. if(newkeys & KEY_ACTION)//keyaction
  451. {
  452.  
  453. if(IsPlayerInAnyVehicle(playerid))
  454. if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
  455. if( IsACop(playerid))
  456. if(IsPlayerInCopCar(playerid))
  457. {
  458.  
  459. new CopV[60],string[256];
  460. {
  461. if(PlayerInfo[playerid][pOrgID] == 1) { CopV = "Policija";
  462. }else if(PlayerInfo[playerid][pOrgID] == 2) { CopV = "SAJ";
  463. }else if(PlayerInfo[playerid][pOrgID] == 3) { CopV = "Vojska";
  464. }else if(PlayerInfo[playerid][pOrgID] == 4) { CopV= "Saobracajna Policija";}
  465. }
  466. format(string, sizeof(string), ""BELA"[ STOP !! ] {099DF7}%s %s Naredjuemo vam da zaustavite vase vozilo sa strane radi rutinske kontrole !!!",CopV, GetName(playerid)); // text
  467. ProxDetector(30.0, playerid, string, 0x60B4F9FF, 0x60B4F9FF, 0x60B4F9FF, 0x60B4F9FF, 0x60B4F9FF);
  468. }
  469.  
  470.  
  471. if(IsPlayerConnected(playerid))
  472. {
  473. if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pOrgID] == 6 || PlayerInfo[playerid][pMember] == 6 || PI[playerid][pAdmin] >=4)
  474. {
  475. if(IsPlayerInAnyVehicle(playerid))
  476. {
  477.  
  478.  
  479. if(GetPlayerState(playerid)==2)
  480. {
  481. new Float:pX,Float:pY,Float:pZ;
  482. GetPlayerPos(playerid,pX,pY,pZ);
  483. new Float:vX,Float:vY,Float:vZ;
  484. new Found=0;
  485. new vid=0;
  486. while((vid<MAX_VEHICLES)&&(!Found))
  487. {
  488. vid++;
  489. GetVehiclePos(vid,vX,vY,vZ);
  490. if ((floatabs(pX-vX)<4.0)&&(floatabs(pY-vY)<4.0)&&(floatabs(pZ-vZ)<4.0)&&(vid!=GetPlayerVehicleID(playerid)))
  491. {
  492. Found=1;
  493. vehEngine[vid] = 0; // motor ugasen
  494. GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
  495. SetVehicleParamsEx(vid, 0, 0, alarm, doors, bonnet, boot, objective); // ovime dobijamo da motor bude ugasen tj da ne ide dim iz auspuha
  496. if(IsTrailerAttachedToVehicle(vid))
  497. {
  498. new ats = GetVehicleTrailer(vid);
  499. SetVehicleToRespawn(ats);
  500. }
  501. SetVehicleToRespawn(vid);
  502.  
  503. if(PI[playerid][pAdmin] < 0)
  504. {
  505. new string[120];
  506. format(string, sizeof(string), ""BELA"[ AMS ] Lepo parkirajte vase vozilo inace cemo ga zapleniti !"); // text
  507. ProxDetector(30.0, playerid, string, -1, -1, 1, -1, -1);
  508. }
  509.  
  510. }
  511.  
  512. }
  513. if(!Found)
  514. {
  515.  
  516. }
  517.  
  518.  
  519. }
  520. }
  521. }
  522.  
  523. }
  524.  
  525. }
  526. ///////////////////////////////////////////KEY CROUCH//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  527. if(newkeys & KEY_CROUCH)
  528. {
  529. if(IsPlayerInRangeOfPoint(playerid,15.0, 2502.7949, 2773.1838, 9.8162))
  530. {
  531. if(PlayerInfo[playerid][pAdmin] >=1)
  532. {
  533. if(OtvorenaKapija == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  534. {
  535. MoveDynamicObject(adminbazagate2, 2497.2585, 2761.4646, 11.5931,3);//DESNA
  536. MoveDynamicObject(adminbazagate1, 2497.4622, 2784.6123, 11.5931,3);//DESNA
  537. new string[120];
  538. SCM(playerid,-1,"Otvorili ste kapiju admin baze zatvorice se automatski za 7 sekundi !");
  539. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju Admin baze.", GetName(playerid));
  540. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  541. SetTimer("Zadminbaza", 7000, 0);
  542. SetTimer("Zadminbaza2", 7000, 0);
  543. OtvorenaKapija = 1;
  544. }
  545. }
  546. }
  547.  
  548. if(IsPlayerInRangeOfPoint(playerid,10.0, 1041.31287, -1459.98425, 16.06276))
  549. {
  550. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pHelper] >=1)
  551. {
  552. if(OtvorenaHelper == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  553. {
  554. MoveDynamicObject(helpergate, 1041.3129, -1459.9843, 5.2243 ,3);//DESNA
  555. new string[120];
  556. SCM(playerid,-1,"Otvorili ste kapiju helper baze zatvorice se automatski za 7 sekundi !");
  557. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju Helper baze.", GetName(playerid));
  558. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  559. SetTimer("Zhelperbaza", 7000, 0);
  560. OtvorenaHelper = 1;
  561. }
  562. }
  563. }
  564.  
  565. if(IsPlayerInRangeOfPoint(playerid,10.0,224.6991,-1441.0713,13.1182))
  566. {
  567. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pPromoter] >=1)
  568. {
  569. if(OtvorenaPromoter == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  570. {
  571. MoveDynamicObject(promotergate, 221.38040, -1437.32190, 8.06426 ,3);//DESNA
  572. new string[120];
  573. SCM(playerid,-1,"Otvorili ste kapiju PROMOTER baze zatvorice se automatski za 7 sekundi !");
  574. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju PROMOTER baze.", GetName(playerid));
  575. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  576. SetTimer("Zpromterbaza", 7000, 0);
  577. OtvorenaPromoter = 1;
  578. }
  579. }
  580. }
  581.  
  582.  
  583. if(IsPlayerInRangeOfPoint(playerid,10.0,2605.7795, 2303.0913, 13.2265))
  584. {
  585. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pVip] >=1)
  586. {
  587. if(OtvorenaVip == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  588. {
  589. MoveDynamicObject(vipbazagate, 2596.8794, 2303.1750, 13.2265 ,3);//DESNA
  590. new string[120];
  591. SCM(playerid,-1,"Otvorili ste kapiju vip baze zatvorice se automatski za 7 sekundi !");
  592. format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju Vip baze.", GetName(playerid));
  593. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  594. SetTimer("Zvipbaza", 7000, 0);
  595. OtvorenaVip = 1;
  596. }
  597. }
  598. }
  599.  
  600.  
  601.  
  602. if(IsPlayerInRangeOfPoint(playerid,10.0,1544.68616, -1630.97925, 13.12380))
  603. {
  604. if(PlayerInfo[playerid][pAdmin] >=1337 || IsACop(playerid))
  605. {
  606. if(OtvorenaRampa == 1) return SCM(playerid,grey,"Rampa je vec podigunta sacekajte 7 sekundi !");
  607. {
  608. MoveDynamicObject(pdrampa, 1544.68616, -1630.97925, 13.12380,0.1, 0.00000, 360.00000, 270.00000);//DESNA
  609. new string[120];
  610. SCM(playerid,-1,"Podigli ste rampu policijske stanice zatvorice se automatski za 7 sekundi !");
  611. format(string, sizeof(string), "* %s Vadi svoj daljinski i podize rampu Policijske baze.", GetName(playerid));
  612. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  613. SetTimer("Zrampa", 7000, 0);
  614. OtvorenaRampa = 1;
  615. }
  616. }
  617. }
  618.  
  619. if(IsPlayerInRangeOfPoint(playerid,10.0,1590.25806, -1637.97034, 14.77322))
  620. {
  621. if(PlayerInfo[playerid][pAdmin] >=1337 || IsACop(playerid))
  622. {
  623. if(OtvorenaGaraza == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  624. {
  625. MoveDynamicObject(pdgarazagate, 1590.25806, -1637.97034, 9.45993 ,3);//DESNA
  626. new string[120];
  627. SCM(playerid,-1,"Otvorili ste kapiju policijske garaze baze zatvorice se automatski za 7 sekundi !");
  628. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju policijske garaze.", GetName(playerid));
  629. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  630. SetTimer("Zgaraza", 7000, 0);
  631. OtvorenaGaraza = 1;
  632. }
  633. }
  634. }
  635.  
  636. if(IsPlayerInRangeOfPoint(playerid,10.0,310.58530, -1556.65869, 32.03978))
  637. {
  638. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
  639. {
  640. if(OtvorenaSaj1 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  641. {
  642. MoveDynamicObject(sajgate1, 310.58530, -1556.65869, 27.81420 ,3);//DESNA
  643. new string[120];
  644. SCM(playerid,-1,"Spustili ste kapiju saj garaze zatvorice se automatski za 7 sekundi !");
  645. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju saj garaze.", GetName(playerid));
  646. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  647. SetTimer("Zsaj1", 7000, 0);
  648. OtvorenaSaj1 = 1;
  649. }
  650. }
  651. }
  652.  
  653.  
  654. if(IsPlayerInRangeOfPoint(playerid,10.0,365.20172, -1468.67993, 31.83939))
  655. {
  656. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
  657. {
  658. if(OtvorenaSaj2 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  659. {
  660. MoveDynamicObject(sajgate2, 365.20172, -1468.67993, 27.05549 ,3);//DESNA
  661. new string[120];
  662. SCM(playerid,-1,"Spustili ste kapiju saj garaze zatvorice se automatski za 7 sekundi !");
  663. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju saj garaze.", GetName(playerid));
  664. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  665. SetTimer("Zsaj2", 7000, 0);
  666. OtvorenaSaj2 = 1;
  667. }
  668. }
  669. }
  670.  
  671.  
  672.  
  673. if(IsPlayerInRangeOfPoint(playerid,10.0,1642.87268, -1715.33008, 16.34359))
  674. {
  675. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 4)
  676. {
  677. if(OtvorenaSp1 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  678. {
  679. MoveDynamicObject(spgate1, 1642.87268, -1715.33008, 11.67224 ,3);//DESNA
  680. new string[120];
  681. SCM(playerid,-1,"Spustili ste kapiju Soabracjane policije zatvorice se automatski za 7 sekundi !");
  682. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju Saobracajne policije.", GetName(playerid));
  683. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  684. SetTimer("Zsp1", 7000, 0);
  685. OtvorenaSp1 = 1;
  686. }
  687. }
  688. }
  689.  
  690.  
  691. if(IsPlayerInRangeOfPoint(playerid,10.0,1643.41675, -1697.03784, 16.23578))
  692. {
  693. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 4)
  694. {
  695. if(OtvorenaSp2 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  696. {
  697. MoveDynamicObject(spgate2, 1643.41675, -1697.03784, 11.50717 ,3);//DESNA
  698. new string[120];
  699. SCM(playerid,-1,"Spustili ste kapiju Soabracjane policije zatvorice se automatski za 7 sekundi !");
  700. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju Saobracajne policije.", GetName(playerid));
  701. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  702. SetTimer("Zsp2", 7000, 0);
  703. OtvorenaSp2 = 1;
  704. }
  705. }
  706. }
  707.  
  708.  
  709. if(IsPlayerInRangeOfPoint(playerid,10.0,1144.05920, -1291.34155, 13.29370))
  710. {
  711. if(PlayerInfo[playerid][pOrgID] == 5 || PlayerInfo[playerid][pAdmin] >= 1338)
  712. {
  713. if(OtvorenaBolnica == 1) return SCM(playerid,grey,"Rampa Bolnice je vec otvorena sacekajte 7 sekundi !");
  714. {
  715. new string[100];
  716. MoveDynamicObject(Brampa,1144.7002, -1291.4762, 13.4166,0.5, 0.0000, 0.0000, -180.0000);
  717. SCM(playerid,-1,"Podigli ste rampu bolnice zatvorice se automatski za 7 sekundi !");
  718. format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu Bolnice", GetName(playerid));
  719. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  720. SetTimer("Zrampa2", 7000, 0);
  721. OtvorenaBolnica = 1;
  722. return 1;
  723. }
  724. }
  725. }
  726.  
  727.  
  728. if(IsPlayerInRangeOfPoint(playerid,15.0,928.5048, -1226.5330, 16.6504))
  729. {
  730. if(OtvorenaKRampa == 1) return SCM(playerid,grey,"Rampa Kamiondzije je vec otvorena sacekajte 7 sekundi !");
  731. {
  732. new string[100];
  733. MoveDynamicObject(krampa,928.5048, -1226.5330, 16.6504,0.1, 0.0000, 1.0000, 89.0000);
  734. SCM(playerid,-1,"Podigli ste rampu kamiondzije zatvorice se automatski za 7 sekundi !");
  735. format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu Kamiondzije", GetName(playerid));
  736. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  737. SetTimer("Zkrampa", 7000, 0);
  738. OtvorenaKRampa = 1;
  739. return 1;
  740. }
  741. }
  742.  
  743.  
  744. if(IsPlayerInRangeOfPoint(playerid,15.0, 1265.01013, -1842.58533, 13.25010))
  745. {
  746. if(PlayerInfo[playerid][pOrgID] == 8 || PlayerInfo[playerid][pAdmin] >= 1338)
  747. {
  748. if(OtvorenaTaxi == 1) return SCM(playerid,grey,"Rampa Taxi baze je vec otvorena sacekajte 7 sekundi !");
  749. {
  750. new string[100];
  751. MoveDynamicObject(taxirampa,1274.9883, -1840.6486, 13.0905,0.1, 0.0000, -4.0000, 0.0000);
  752. SCM(playerid,-1,"Podigli ste rampu taxi baze zatvorice se automatski za 7 sekundi !");
  753. format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu Taxi kompanije", GetName(playerid));
  754. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  755. SetTimer("Ztaxi", 7000, 0);
  756. OtvorenaTaxi = 1;
  757. return 1;
  758. }
  759. }
  760. }
  761.  
  762. if(IsPlayerInRangeOfPoint(playerid,15.0, 1218.1355, -1840.5867, 13.0905))
  763. {
  764. if(PlayerInfo[playerid][pOrgID] == 8 || PlayerInfo[playerid][pAdmin] >= 1338)
  765. {
  766. if(OtvorenaTaxi2 == 1) return SCM(playerid,grey,"Rampa Taxi baze je vec otvorena sacekajte 7 sekundi !");
  767. {
  768. new string[100];
  769. MoveDynamicObject(taxirampa2,1218.1355, -1840.5867, 13.0905,0.1, 0.0000, -12.0000, 2.0000);
  770. SCM(playerid,-1,"Podigli ste rampu taxi baze zatvorice se automatski za 7 sekundi !");
  771. format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu 2 Taxi kompanije", GetName(playerid));
  772. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  773. SetTimer("Ztaxi2", 7000, 0);
  774. OtvorenaTaxi2 = 1;
  775. return 1;
  776. }
  777. }
  778. }
  779.  
  780.  
  781.  
  782.  
  783. if(IsPlayerInRangeOfPoint(playerid,10.0,2720.0854, -2503.9609, 14.2865))
  784. {
  785. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 3)
  786. {
  787. if(OtvorenaVojska1 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  788. {
  789. MoveDynamicObject(Vojskagate, 2720.1367, -2503.8955, 10.7976 ,2);//DESNA
  790. new string[120];
  791. SCM(playerid,-1,"Spustili ste kapiju Vojne baze zatvorice se automatski za 7 sekundi !");
  792. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta ogradu Vojne baze.", GetName(playerid));
  793. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  794. SetTimer("Zvojska1", 7000, 0);
  795. OtvorenaVojska1 = 1;
  796. }
  797. }
  798. }
  799.  
  800.  
  801.  
  802. if(IsPlayerInRangeOfPoint(playerid,10.0,720.3855, -2405.5288, 14.2237))
  803. {
  804. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 3)
  805. {
  806. if(OtvorenaVojska2 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
  807. {
  808. MoveDynamicObject(Vojskagate2, 2720.1750, -2405.3428, 10.6039,2);//DESNA
  809. new string[120];
  810. SCM(playerid,-1,"Spustili ste kapiju Vojne baze zatvorice se automatski za 7 sekundi !");
  811. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta ogradu Vojne baze.", GetName(playerid));
  812. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  813. SetTimer("Zvojska2", 7000, 0);
  814. OtvorenaVojska2 = 1;
  815. }
  816. }
  817. }
  818.  
  819.  
  820. if(IsPlayerInRangeOfPoint(playerid,15.0,1637.67456, -1143.76392, 25.65180))
  821. {
  822. if(OtvorenaPijaca == 1) return SCM(playerid,grey,"Kapije auto pijace je vec otvorena sacekajte 7 sekundi !");
  823. {
  824. if(50 > PI[playerid][pMoney]) return GMT(playerid,"~r~Nemate novca za ulaz !",3000,3);
  825. new string[128],name[MAX_PLAYER_NAME];
  826. GetPlayerName(playerid,name,sizeof(name));
  827. MoveDynamicObject(Pijacagate,1637.67456, -1143.76392, 19.84495, 2.0);
  828. SCM(playerid,-1," Sputstili ste kapiju auto pijace zatvorice se automatski za 7 sekundu !");
  829. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju Auto Pijace.", GetName(playerid));
  830. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  831. SetTimer("Zpijaca", 7000, 0);
  832. g_NovacMinus(playerid,50);
  833. GMT(playerid,"~r~-50$",3000,1);
  834. new rand = random(3);
  835. FirmaNovac(21,24+rand);
  836. FirmaNovacS(21,11+rand);
  837. OtvorenaPijaca = 1;
  838. return 1;
  839. }
  840. }
  841.  
  842.  
  843. if(IsPlayerInRangeOfPoint(playerid,10.0,1022.23969, -928.56720, 41.68950))
  844. {
  845. if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 6)
  846. {
  847. if(OtvorenaPs == 1) return SCM(playerid,grey,"Kapija auto moto saveza je vec otvorena sacekajte 7 sekundi !");
  848. {
  849. MoveDynamicObject(psgate, 1022.23969, -928.56720, 35.61166,2);//DESNA
  850. new string[120];
  851. SCM(playerid,-1,"Spustili ste kapiju Auto moto saveza zatvorice se automatski za 7 sekundi !");
  852. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta Kapiju Auto moto saveza.", GetName(playerid));
  853. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  854. SetTimer("Zps1", 7000, 0);
  855. OtvorenaPs = 1;
  856. }
  857. }
  858. }
  859.  
  860. if(IsPlayerInRangeOfPoint(playerid,10.0,1245.27869, -767.44641, 93.56210))
  861. {
  862. if(PlayerInfo[playerid][pOrgID] == 14 || PlayerInfo[playerid][pAdmin] >= 1338)
  863. {
  864. if(OtvorenaLcn == 1) return SCM(playerid,grey,"kapija Ruske Mafije je vec otvorena sacekajte 7 sekundi !");
  865. {
  866. new string[100];
  867. MoveDynamicObject(lcngate,1245.27869, -767.44641, 88.05800,3.0);
  868. SCM(playerid,-1,"Spustili ste kapiju Ruske Mafije zatvorice se automatski za 7 sekundi !");
  869. format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Ruske Mafije", GetName(playerid));
  870. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  871. SetTimer("Zlcn", 7000, 0);
  872. OtvorenaLcn = 1;
  873. return 1;
  874. }
  875. }
  876. }
  877.  
  878.  
  879. if(IsPlayerInRangeOfPoint(playerid,10.0,1155.40918, -1212.12366, 19.38069))
  880. {
  881. if(PlayerInfo[playerid][pOrgID] == 15 || PlayerInfo[playerid][pAdmin] >= 1338)
  882. {
  883. if(OtvorenaPo == 1) return SCM(playerid,grey,"Kapija Privatne Organizacije je vec otvorena sacekajte 7 sekundi !");
  884. {
  885. new string[100];
  886. MoveDynamicObject(pogate,1157.5330, -1215.1619, 14.0042,2.0);
  887. SCM(playerid,-1,"Spustili ste kapiju Privatne Organizacije zatvorice se automatski za 7 sekundi !");
  888. format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Privatne Organizacije", GetName(playerid));
  889. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  890. SetTimer("Zpo1", 7000, 0);
  891. OtvorenaPo = 1;
  892. return 1;
  893. }
  894. }
  895. }
  896.  
  897. if(IsPlayerInRangeOfPoint(playerid,10.0,1807.45105, -1347.87683, 16.91312))
  898. {
  899. if(PlayerInfo[playerid][pOrgID] == 16 || PlayerInfo[playerid][pAdmin] >= 1338)
  900. {
  901. if(Otvorena2Po == 1) return SCM(playerid,grey,"Kapija Privatne Organizacije 2 je vec otvorena sacekajte 7 sekundi !");
  902. {
  903. new string[100];
  904. MoveDynamicObject(pogate2,1807.4510, -1347.8768, 9.3318,2.0);
  905. SCM(playerid,-1,"Spustili ste kapiju Privatne Organizacije 2 zatvorice se automatski za 7 sekundi !");
  906. format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Privatne Organizacije 2", GetName(playerid));
  907. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  908. SetTimer("Z2po", 7000, 0);
  909. Otvorena2Po = 1;
  910. return 1;
  911. }
  912. }
  913. }
  914.  
  915.  
  916.  
  917.  
  918.  
  919. if(IsPlayerInRangeOfPoint(playerid,15.0,1025.90637, -370.90341, 75.02570))
  920. {
  921. if(PlayerInfo[playerid][pOrgID] == 17 || PlayerInfo[playerid][pAdmin] >= 1338)
  922. {
  923. if(OtvorenaPo2 == 1) return SCM(playerid,grey,"Kapija Mexican Maffie je vec otvorena sacekajte 7 sekundi !");
  924. {
  925. new string[100];
  926. MoveDynamicObject(po2gate,1025.90637, -370.90341, 80.36088,2.0);
  927. SCM(playerid,-1,"Podigli ste kapiju Mexican Maffie zatvorice se automatski za 7 sekundi !");
  928. format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize kapiju Mexican Maffie", GetName(playerid));
  929. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  930. SetTimer("Zpo2", 7000, 0);
  931. OtvorenaPo2 = 1;
  932. return 1;
  933. }
  934. }
  935. }
  936.  
  937. if(IsPlayerInRangeOfPoint(playerid,10.0, 1284.90271, -2057.06665, 60.76602))
  938. {
  939. if(PlayerInfo[playerid][pOrgID] == 13 || PlayerInfo[playerid][pAdmin] >= 1338)
  940. {
  941. if(OtvorenaRm == 1) return SCM(playerid,grey,"Kapija La Cosa Nostra je vec otvorena sacekajte 7 sekundi !");
  942. {
  943. new string[100];
  944. MoveDynamicObject(ruskagate,1284.90271, -2057.06665, 54.94955,2.0);
  945. SCM(playerid,-1,"Spustili ste kapiju La Cosa Nostre zatvorice se automatski za 7 sekundi !");
  946. format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju La Cosa Nostre", GetName(playerid));
  947. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  948. SetTimer("Zrm", 7000, 0);
  949. OtvorenaRm = 1;
  950. return 1;
  951. }
  952. }
  953. }
  954.  
  955. if(IsPlayerInRangeOfPoint(playerid,10.0,2833.9889, -1581.4382, 11.7799))
  956. {
  957. if(PlayerInfo[playerid][pOrgID] == 18 || PlayerInfo[playerid][pAdmin] >= 1338)
  958. {
  959. if(OtvorenaTriada == 1) return SCM(playerid,grey,"kapija Triade je vec otvorena sacekajte 7 sekundi !");
  960. {
  961. new string[100];
  962. MoveDynamicObject(triadagate,2833.9890, -1581.4382, 3.2107,2.0);
  963. SCM(playerid,-1,"Spustili ste kapiju Triade zatvorice se automatski za 7 sekundi !");
  964. format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Triade", GetName(playerid));
  965. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  966. SetTimer("Ztriada", 7000, 0);
  967. OtvorenaTriada = 1;
  968. return 1;
  969. }
  970. }
  971. }
  972.  
  973.  
  974.  
  975.  
  976. if(IsPlayerInRangeOfPoint(playerid,10.0,-717.8864, 967.6525, 13.2669))
  977. {
  978. if(PlayerInfo[playerid][pAdmin] == 1341 || PI[playerid][pPosedovanjeKuce] == 991)
  979. {
  980. if(OtvorenaMarkela == 1) return SCM(playerid,grey,"Kapija kuce je vec otvorena sacekajte 7 sekundi !");
  981. {
  982. new string[100];
  983. MoveDynamicObject(markelagate,-717.88641, 967.65247, 8.22169,2.0);
  984. SCM(playerid,-1,"Spustili ste kapiju dvorista zatvorice se automatski za 7 sekundi !");
  985. format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju dvorista", GetName(playerid));
  986. ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  987. SetTimer("ZMarkela", 7000, 0);
  988. OtvorenaMarkela = 1;
  989. return 1;
  990. }
  991. }
  992. }
  993.  
  994.  
  995.  
  996.  
  997. /////SA PIJACA GATE
  998. if(IsPlayerInRangeOfPoint(playerid,10.0,1397.40601, 2697.25269, 11.44260))
  999. {
  1000. if(OtvorenaSaKapija == 1) return SCM(playerid,grey,"Vrata SA pijace vozile je vec otvorena sacekajte 5 sekundi !");
  1001. {
  1002. if(50 > PI[playerid][pMoney]) return GMT(playerid,"~r~Nemate dovoljno novca..",3000,3);
  1003. {
  1004. MoveDynamicObject(sakapija, 1397.40601, 2697.25269, 7.98378,2);//DESNA
  1005. new string[120];
  1006. SCM(playerid,-1,"Spustili ste kapiju SA pijace vozila zatvorice se za 5 sekundi !");
  1007. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju SA pijace automobila.", GetName(playerid));
  1008. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  1009. SetTimer("Zsakapija", 7000, 0);
  1010. OtvorenaSaKapija = 1;
  1011. g_NovacMinus(playerid,50);
  1012. new rand = random(3);
  1013. FirmaNovac(21,24+rand);
  1014. FirmaNovacS(21,11+rand);
  1015. GMT(playerid,"~r~-50$",3000,1);
  1016. }
  1017. }
  1018. }
  1019.  
  1020. /////ZG PIJACA GATE
  1021. if(IsPlayerInRangeOfPoint(playerid,10.0, -2566.67749, 581.24316, 15.05248))
  1022. {
  1023. if(OtvorenaZgKapija == 1) return SCM(playerid,grey,"Vrata ZG pijace vozile je vec otvorena sacekajte 5 sekundi !");
  1024. {
  1025. if(50 > PI[playerid][pMoney]) return GMT(playerid,"~r~Nemate dovoljno novca..",3000,3);
  1026. {
  1027. MoveDynamicObject(zgkapija, -2566.67749, 581.24316, 11.72212,2);//DESNA
  1028. new string[120];
  1029. SCM(playerid,-1,"Spustili ste kapiju ZG pijace vozila zatvorice se za 5 sekundi !");
  1030. format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju ZG pijace automobila.", GetName(playerid));
  1031. ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
  1032. SetTimer("Zzgkapija", 5000, 0);
  1033. OtvorenaZgKapija = 1;
  1034. new rand = random(3);
  1035. FirmaNovac(21,24+rand);
  1036. FirmaNovacS(21,11+rand);
  1037. g_NovacMinus(playerid,50);
  1038. GMT(playerid,"~r~-50$",3000,1);
  1039. }
  1040. }
  1041. }
  1042.  
  1043. }
  1044.  
  1045. if(oldkeys & KEY_SECONDARY_ATTACK)
  1046. {
  1047.  
  1048. if(ImaLisice[playerid] == 1 || Oboren[playerid] == 1 || Zavezan[playerid] == 1|| IgracTazovan[playerid] == 1 || MrtavIgrac[playerid] == 1)
  1049. {
  1050. SCM(playerid,grey,"Ne mozete stiskati F za izlazak/ulazak iz objekta dok ste /tazovani/oboreni/uhapseni/vezani u animaciji !");
  1051. return 1;
  1052. }
  1053. if(!IsPlayerInAnyVehicle(playerid))
  1054. {
  1055.  
  1056. if(IsPlayerInRangeOfPoint(playerid,2,1498.6240,-1580.5176,13.5498))
  1057. {
  1058.  
  1059. SetPlayerVirtualWorld(playerid,1600);
  1060. Dimi_SetPlayerPos(playerid,1274.9469,-654.1808,1088.3063);
  1061. SetCameraBehindPlayer(playerid);
  1062. GMT(playerid,"~w~Afk zona.",3000,1);
  1063. SCM(playerid,-1,"[AFK ZONA] Usli ste u afk zonu ovde mozete vaseg karaketra da ostavite AFK !");
  1064. PlayerInfo[playerid][pInt] = 1;
  1065. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1066. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1067. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1068. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1069. DeleteSnow(playerid);
  1070. }
  1071. else if(IsPlayerInRangeOfPoint(playerid,2,1274.9469,-654.1808,1088.3063))
  1072. {
  1073. SetPlayerInterior(playerid,0);
  1074. SetPlayerVirtualWorld(playerid,0);
  1075. Dimi_SetPlayerPos(playerid,1498.6240,-1580.5176,13.5498);
  1076. SetCameraBehindPlayer(playerid);
  1077. GMT(playerid,"~w~Beograd..",3000,1);
  1078. PlayerInfo[playerid][pInt] = 0;
  1079. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1080. if(PI[playerid][pVremenska] == 1)
  1081. {
  1082. SetPlayerWeather(playerid,Prognozasys);
  1083. if(Snegic == 1)
  1084. {
  1085. CreateSnow(playerid);
  1086. }
  1087.  
  1088. }
  1089. }
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096. if(IsPlayerInRangeOfPoint(playerid,2,1555.0652,-1675.7325,16.1953))
  1097. {
  1098.  
  1099. SetPlayerInterior(playerid,6);
  1100. SetPlayerVirtualWorld(playerid,1500);
  1101. Dimi_SetPlayerPos(playerid,246.9884,62.9616,1003.6406);
  1102. SetCameraBehindPlayer(playerid);
  1103. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1104. GMT(playerid,"~w~Policija..",3000,1);
  1105. PlayerInfo[playerid][pInt] = 1;
  1106. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1107. }
  1108. else if(IsPlayerInRangeOfPoint(playerid,2,246.9884,62.9616,1003.6406))
  1109. {
  1110. SetPlayerInterior(playerid,0);
  1111. SetPlayerVirtualWorld(playerid,0);
  1112. Dimi_SetPlayerPos(playerid,1555.0652,-1675.7325,16.1953);
  1113. SetCameraBehindPlayer(playerid);
  1114. GMT(playerid,"~w~Beograd..",3000,1);
  1115. PlayerInfo[playerid][pInt] = 0;
  1116. SetPlayerWeather(playerid,Prognozasys);
  1117. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1118. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1119. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1120. if(PI[playerid][pVremenska] == 1)
  1121. {
  1122. SetPlayerWeather(playerid,Prognozasys);
  1123. if(Snegic == 1)
  1124. {
  1125. CreateSnow(playerid);
  1126. }
  1127.  
  1128. }
  1129. }
  1130.  
  1131.  
  1132. if(IsPlayerInRangeOfPoint(playerid,2,1191.7321,-903.7512,43.2038))
  1133. {
  1134.  
  1135. SetPlayerInterior(playerid,10);
  1136. SetPlayerVirtualWorld(playerid,1001);
  1137. Dimi_SetPlayerPos(playerid,363.1017,-74.9086,1001.5078);
  1138. SetCameraBehindPlayer(playerid);
  1139. GMT(playerid,"~w~Fast Food..",3000,1);
  1140. PlayerInfo[playerid][pInt] = 1;
  1141. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1142. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1143. TogglePlayerControllable(playerid, 0);
  1144. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1145. }
  1146. else if(IsPlayerInRangeOfPoint(playerid,2,363.1017,-74.9086,1001.5078))
  1147. {
  1148.  
  1149. SetPlayerInterior(playerid,0);
  1150. SetPlayerVirtualWorld(playerid,0);
  1151. Dimi_SetPlayerPos(playerid,1191.7321,-903.7512,43.2038);
  1152. SetCameraBehindPlayer(playerid);
  1153. GMT(playerid,"~w~Beograd..",3000,1);
  1154. PlayerInfo[playerid][pInt] = 0;
  1155. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1156. TogglePlayerControllable(playerid, 0);
  1157. SetPlayerWeather(playerid,Prognozasys);
  1158. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1159. if(PI[playerid][pVremenska] == 1)
  1160. {
  1161. SetPlayerWeather(playerid,Prognozasys);
  1162. if(Snegic == 1)
  1163. {
  1164. CreateSnow(playerid);
  1165. }
  1166.  
  1167. }
  1168. }
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174. if(IsPlayerInRangeOfPoint(playerid,2,326.2005,-1514.9053,36.0325))
  1175. {
  1176.  
  1177. SetPlayerInterior(playerid,3);
  1178. SetPlayerVirtualWorld(playerid,1499);
  1179. Dimi_SetPlayerPos(playerid,288.9060,167.3657,1007.1719);
  1180. SetCameraBehindPlayer(playerid);
  1181. GMT(playerid,"~w~Saj uprava..",3000,1);
  1182. PlayerInfo[playerid][pInt] = 1;
  1183. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1184. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1185. }
  1186. else if(IsPlayerInRangeOfPoint(playerid,2,288.9060,167.3657,1007.1719))
  1187. {
  1188. if(!IsPlayerInAnyVehicle(playerid))
  1189. SetPlayerInterior(playerid,0);
  1190. SetPlayerVirtualWorld(playerid,0);
  1191. Dimi_SetPlayerPos(playerid,326.2005,-1514.9053,36.0325);
  1192. SetCameraBehindPlayer(playerid);
  1193. GMT(playerid,"~w~Beograd..",3000,1);
  1194. PlayerInfo[playerid][pInt] = 0;
  1195. SetPlayerWeather(playerid,Prognozasys);
  1196. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1197. if(PI[playerid][pVremenska] == 1)
  1198. {
  1199. SetPlayerWeather(playerid,Prognozasys);
  1200. if(Snegic == 1)
  1201. {
  1202. CreateSnow(playerid);
  1203. }
  1204.  
  1205. }
  1206. }
  1207.  
  1208.  
  1209. if(IsPlayerInRangeOfPoint(playerid,2,1653.9598,-1655.2192,22.5156))
  1210. {
  1211.  
  1212. SetPlayerInterior(playerid,10);
  1213. SetPlayerVirtualWorld(playerid,1498);
  1214. Dimi_SetPlayerPos(playerid,246.5481,107.5590,1003.2188);
  1215. SetCameraBehindPlayer(playerid);
  1216. GMT(playerid,"~w~Saobracajna policija..",3000,1);
  1217. PlayerInfo[playerid][pInt] = 1;
  1218. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1219. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1220. }
  1221. else if(IsPlayerInRangeOfPoint(playerid,2,246.5481,107.5590,1003.2188))
  1222. {
  1223. SetPlayerInterior(playerid,0);
  1224. SetPlayerVirtualWorld(playerid,0);
  1225. Dimi_SetPlayerPos(playerid,1653.9598,-1655.2192,22.5156);
  1226. SetCameraBehindPlayer(playerid);
  1227. GMT(playerid,"~w~Beograd..",3000,1);
  1228. PlayerInfo[playerid][pInt] = 0;
  1229. SetPlayerWeather(playerid,Prognozasys);
  1230. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1231. if(PI[playerid][pVremenska] == 1)
  1232. {
  1233. SetPlayerWeather(playerid,Prognozasys);
  1234. if(Snegic == 1)
  1235. {
  1236. CreateSnow(playerid);
  1237. }
  1238.  
  1239. }
  1240. }
  1241.  
  1242. //////////////////////////za bolnicu nes/////////////////////////////////////////
  1243. if(IsPlayerInRangeOfPoint(playerid,2,1960.7778,1203.8031,-5.2087))
  1244. {
  1245. if(PI[playerid][pOrgID] == 5)
  1246. {
  1247. SetPlayerInterior(playerid,0);
  1248. SetPlayerVirtualWorld(playerid,0);
  1249. Dimi_SetPlayerPos(playerid,1161.5140,-1329.8545,31.4943);
  1250. SetCameraBehindPlayer(playerid);
  1251. GMT(playerid,"~w~Krov bolnice.",3000,1);
  1252. PlayerInfo[playerid][pInt] = 0;
  1253. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1254. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1255. }
  1256. }
  1257. else if(IsPlayerInRangeOfPoint(playerid,2,1161.5140,-1329.8545,31.4943))
  1258. {
  1259. if(PI[playerid][pOrgID] == 5)
  1260. {
  1261. SetPlayerInterior(playerid,0);
  1262. SetPlayerVirtualWorld(playerid,0);
  1263. Dimi_SetPlayerPos(playerid,1960.7778,1203.8031,-5.2087);
  1264. SetCameraBehindPlayer(playerid);
  1265. GMT(playerid,"~w~Bolnica..",3000,1);
  1266. PlayerInfo[playerid][pInt] = 1;
  1267. SetPlayerWeather(playerid,Prognozasys);
  1268. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1269. if(PI[playerid][pVremenska] == 1)
  1270. {
  1271. SetPlayerWeather(playerid,Prognozasys);
  1272. if(Snegic == 1)
  1273. {
  1274. CreateSnow(playerid);
  1275. }
  1276.  
  1277. }
  1278. }
  1279. }
  1280.  
  1281.  
  1282. if(IsPlayerInRangeOfPoint(playerid,2,1963.0107,1146.7504,-5.2087))
  1283. {
  1284. if(PI[playerid][pOrgID] == 5)
  1285. {
  1286.  
  1287. SetPlayerInterior(playerid,0);
  1288. SetPlayerVirtualWorld(playerid,0);
  1289. Dimi_SetPlayerPos(playerid,1148.0486,-1317.9724,13.6568);
  1290. SetCameraBehindPlayer(playerid);
  1291. GMT(playerid,"~w~Dvoriste bolnice.",3000,1);
  1292. PlayerInfo[playerid][pInt] = 0;
  1293. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1294. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1295. }
  1296. }
  1297. else if(IsPlayerInRangeOfPoint(playerid,2,1148.0486,-1317.9724,13.6568))
  1298. {
  1299. if(PI[playerid][pOrgID] == 5)
  1300. {
  1301. SetPlayerInterior(playerid,0);
  1302. SetPlayerVirtualWorld(playerid,0);
  1303. Dimi_SetPlayerPos(playerid,1963.0107,1146.7504,-5.208);
  1304. SetCameraBehindPlayer(playerid);
  1305. GMT(playerid,"~w~Bolnica..",3000,1);
  1306. PlayerInfo[playerid][pInt] = 1;
  1307. SetPlayerWeather(playerid,Prognozasys);
  1308. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1309. if(PI[playerid][pVremenska] == 1)
  1310. {
  1311. SetPlayerWeather(playerid,Prognozasys);
  1312. if(Snegic == 1)
  1313. {
  1314. CreateSnow(playerid);
  1315. }
  1316.  
  1317. }
  1318. }
  1319. }
  1320. ////////////////////////////////////
  1321. if(IsPlayerInRangeOfPoint(playerid,2,2729.4521,-2451.4382,17.5937))
  1322. {
  1323.  
  1324. SetPlayerInterior(playerid,0);
  1325. SetPlayerVirtualWorld(playerid,0);
  1326. Dimi_SetPlayerPos(playerid,1861.3680,-1699.4238,5202.5859);
  1327. SetCameraBehindPlayer(playerid);
  1328. GMT(playerid,"~w~Vojna Baza..",3000,1);
  1329. SCM(playerid,grey,"PAZNJA: Ukoliko niste clan Vojske mozete biti uhapseni za ulazak !");
  1330. PlayerInfo[playerid][pInt] = 1;
  1331. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1332. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1333. }
  1334. else if(IsPlayerInRangeOfPoint(playerid,2,1861.3680,-1699.4238,5202.5859))
  1335. {
  1336. SetPlayerInterior(playerid,0);
  1337. SetPlayerVirtualWorld(playerid,0);
  1338. Dimi_SetPlayerPos(playerid,2729.4521,-2451.4382,17.5937);
  1339. SetCameraBehindPlayer(playerid);
  1340. GMT(playerid,"~w~Beograd..",3000,1);
  1341. PlayerInfo[playerid][pInt] = 0;
  1342. SetPlayerWeather(playerid,Prognozasys);
  1343. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1344. if(PI[playerid][pVremenska] == 1)
  1345. {
  1346. SetPlayerWeather(playerid,Prognozasys);
  1347. if(Snegic == 1)
  1348. {
  1349. CreateSnow(playerid);
  1350. }
  1351.  
  1352. }
  1353. }
  1354. ///////////////////////////////////////
  1355.  
  1356. if(IsPlayerInRangeOfPoint(playerid,2,1172.0873,-1323.2577,15.4028))
  1357. {
  1358.  
  1359. SetPlayerInterior(playerid,0);
  1360. Dimi_SetPlayerPos(playerid,1976.1085,1163.7351,-5.2087);
  1361. SetCameraBehindPlayer(playerid);
  1362. GMT(playerid,"~w~Gradska Bolnica",3000,1);
  1363. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1364. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1365. PlayerInfo[playerid][pInt] = 1;
  1366. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1367. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1368. }
  1369. else if(IsPlayerInRangeOfPoint(playerid,2,1976.1085,1163.7351,-5.2087))
  1370. {
  1371. SetPlayerInterior(playerid,0);
  1372. Dimi_SetPlayerPos(playerid,1172.0873,-1323.2577,15.4028);
  1373. SetCameraBehindPlayer(playerid);
  1374. GMT(playerid,"~w~Beograd",3000,1);
  1375. PlayerInfo[playerid][pInt] = 0;
  1376. SetPlayerWeather(playerid,Prognozasys);
  1377. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1378. if(PI[playerid][pVremenska] == 1)
  1379. {
  1380. SetPlayerWeather(playerid,Prognozasys);
  1381. if(Snegic == 1)
  1382. {
  1383. CreateSnow(playerid);
  1384. }
  1385.  
  1386. }
  1387. }
  1388.  
  1389.  
  1390. //taxi
  1391. if(IsPlayerInRangeOfPoint(playerid,2,1219.1949,-1811.7744,16.5938))
  1392. {
  1393.  
  1394. SetPlayerInterior(playerid,3);
  1395. SetPlayerVirtualWorld(playerid,1600);
  1396. Dimi_SetPlayerPos(playerid,366.8638,162.2953,1019.9844);
  1397. SetCameraBehindPlayer(playerid);
  1398. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1399. GMT(playerid,"~w~Taxi kompanija",3000,1);
  1400. PlayerInfo[playerid][pInt] = 1;
  1401. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1402. }
  1403. else if(IsPlayerInRangeOfPoint(playerid,2,366.8638,162.2953,1019.9844))
  1404. {
  1405. SetPlayerInterior(playerid,0);
  1406. SetPlayerVirtualWorld(playerid,0);
  1407. Dimi_SetPlayerPos(playerid,1219.1949,-1811.7744,16.5938);
  1408. SetCameraBehindPlayer(playerid);
  1409. GMT(playerid,"~w~Beograd",3000,1);
  1410. PlayerInfo[playerid][pInt] = 0;
  1411. SetPlayerWeather(playerid,Prognozasys);
  1412. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1413. if(PI[playerid][pVremenska] == 1)
  1414. {
  1415. SetPlayerWeather(playerid,Prognozasys);
  1416. if(Snegic == 1)
  1417. {
  1418. CreateSnow(playerid);
  1419. }
  1420.  
  1421. }
  1422. }
  1423.  
  1424.  
  1425. //ams
  1426. if(IsPlayerInRangeOfPoint(playerid,2,1072.7174,-896.1559,43.3932))
  1427. {
  1428.  
  1429. SetPlayerInterior(playerid,3);
  1430. SetPlayerVirtualWorld(playerid,1601);
  1431. Dimi_SetPlayerPos(playerid,371.0771,154.1456,1021.7891);
  1432. SetCameraBehindPlayer(playerid);
  1433. GMT(playerid,"~y~Auto Moto Savez",3000,1);
  1434. PlayerInfo[playerid][pInt] = 1;
  1435. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1436. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1437. }
  1438. else if(IsPlayerInRangeOfPoint(playerid,2,371.0771,154.1456,1021.7891))
  1439. {
  1440. SetPlayerInterior(playerid,0);
  1441. SetPlayerVirtualWorld(playerid,0);
  1442. Dimi_SetPlayerPos(playerid,1072.7174,-896.1559,43.3932);
  1443. SetCameraBehindPlayer(playerid);
  1444. GMT(playerid,"~w~Beograd",3000,1);
  1445. PlayerInfo[playerid][pInt] = 0;
  1446. SetPlayerWeather(playerid,Prognozasys);
  1447. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1448. if(PI[playerid][pVremenska] == 1)
  1449. {
  1450. SetPlayerWeather(playerid,Prognozasys);
  1451. if(Snegic == 1)
  1452. {
  1453. CreateSnow(playerid);
  1454. }
  1455.  
  1456. }
  1457. }
  1458. //
  1459.  
  1460. //novinari////////////////////////////////////////////////////////////////////////
  1461. if(IsPlayerInRangeOfPoint(playerid,2,732.6662,-1355.7823,15.1563))
  1462. {
  1463.  
  1464. SetPlayerInterior(playerid,0);
  1465. SetPlayerVirtualWorld(playerid,0);
  1466. Dimi_SetPlayerPos(playerid,2111.8354,2307.8772,1715.8330);
  1467. SetCameraBehindPlayer(playerid);
  1468. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1469. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1470. GMT(playerid,"~w~Novinarski studio",3000,1);
  1471. PlayerInfo[playerid][pInt] = 1;
  1472. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1473. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1474. }
  1475. else if(IsPlayerInRangeOfPoint(playerid,2,2111.8354,2307.8772,1715.8330))
  1476. {
  1477. SetPlayerInterior(playerid,0);
  1478. SetPlayerVirtualWorld(playerid,0);
  1479. Dimi_SetPlayerPos(playerid,732.6662,-1355.7823,15.1563);
  1480. SetCameraBehindPlayer(playerid);
  1481. GMT(playerid,"~w~Beograd",3000,1);
  1482. PlayerInfo[playerid][pInt] = 0;
  1483. SetPlayerWeather(playerid,Prognozasys);
  1484. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1485. if(PI[playerid][pVremenska] == 1)
  1486. {
  1487. SetPlayerWeather(playerid,Prognozasys);
  1488. if(Snegic == 1)
  1489. {
  1490. CreateSnow(playerid);
  1491. }
  1492.  
  1493. }
  1494. }
  1495.  
  1496. ////////
  1497. if(IsPlayerInRangeOfPoint(playerid,2,2086.5337,2298.7947,1717.0930))
  1498. {
  1499.  
  1500. SetPlayerInterior(playerid,0);
  1501. SetPlayerVirtualWorld(playerid,0);
  1502. Dimi_SetPlayerPos(playerid,727.0333,-1381.5115,25.7167);
  1503. SetCameraBehindPlayer(playerid);
  1504. GMT(playerid,"~w~Krov novinarske zgrade",3000,1);
  1505. PlayerInfo[playerid][pInt] = 0;
  1506. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1507. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1508. }
  1509. else if(IsPlayerInRangeOfPoint(playerid,2,727.0333,-1381.5115,25.7167))
  1510. {
  1511. SetPlayerInterior(playerid,0);
  1512. SetPlayerVirtualWorld(playerid,0);
  1513. Dimi_SetPlayerPos(playerid,2086.5337,2298.7947,1717.0930);
  1514. SetCameraBehindPlayer(playerid);
  1515. SetPlayerWeather(playerid,Prognozasys);
  1516. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1517. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1518. GMT(playerid,"~w~Novinari",3000,1);
  1519. PlayerInfo[playerid][pInt] = 1;
  1520. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1521. if(PI[playerid][pVremenska] == 1)
  1522. {
  1523. SetPlayerWeather(playerid,Prognozasys);
  1524. if(Snegic == 1)
  1525. {
  1526. CreateSnow(playerid);
  1527. }
  1528.  
  1529. }
  1530. }
  1531. ////////////////////////////////////////////////////////////////////////////////
  1532.  
  1533. //AERODROM ULAZ IZLAZ
  1534. if(IsPlayerInRangeOfPoint(playerid,2,1642.2920,-2238.0466,13.4981))
  1535. {
  1536.  
  1537. SetPlayerInterior(playerid,0);
  1538. SetPlayerVirtualWorld(playerid,0);
  1539. Dimi_SetPlayerPos(playerid,1630.3199,-2431.1533,754.1790);
  1540. SetCameraBehindPlayer(playerid);
  1541. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1542. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1543. GMT(playerid,"~w~Aerodrom..",3000,1);
  1544. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1545. PlayerInfo[playerid][pInt] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1546. }
  1547. else if(IsPlayerInRangeOfPoint(playerid,2,1630.3199,-2431.1533,754.1790))
  1548. {
  1549. SetPlayerInterior(playerid,0);
  1550. SetPlayerVirtualWorld(playerid,0);
  1551. Dimi_SetPlayerPos(playerid,1642.2920,-2238.0466,13.4981);
  1552. SetCameraBehindPlayer(playerid);
  1553. SetPlayerWeather(playerid,Prognozasys);
  1554. GMT(playerid,"~w~Beograd..",3000,1);
  1555. PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1556. if(PI[playerid][pVremenska] == 1)
  1557. {
  1558. SetPlayerWeather(playerid,Prognozasys);
  1559. if(Snegic == 1)
  1560. {
  1561. CreateSnow(playerid);
  1562. }
  1563.  
  1564. }
  1565. }
  1566.  
  1567.  
  1568. ///////////////////////////////////////oglasnik////////////////////////////////////////////////
  1569. if(IsPlayerInRangeOfPoint(playerid,2,1610.8539,-1891.7483,13.5469))
  1570. {
  1571.  
  1572. SetPlayerInterior(playerid,0);
  1573. SetPlayerVirtualWorld(playerid,0);
  1574. Dimi_SetPlayerPos(playerid,1618.0154,-1758.7495,1068.4534);
  1575. SetCameraBehindPlayer(playerid);
  1576. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1577. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1578. GMT(playerid,"~w~Oglasnik..",3000,1);
  1579. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1580. PlayerInfo[playerid][pInt] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1581. }
  1582. else if(IsPlayerInRangeOfPoint(playerid,2,1618.0154,-1758.7495,1068.4534))
  1583. {
  1584. SetPlayerInterior(playerid,0);
  1585. SetPlayerVirtualWorld(playerid,0);
  1586. Dimi_SetPlayerPos(playerid,1610.8539,-1891.7483,13.5469);
  1587. SetCameraBehindPlayer(playerid);
  1588. SetPlayerWeather(playerid,Prognozasys);
  1589. GMT(playerid,"~w~Beograd..",3000,1);
  1590. PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1591. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1592. if(PI[playerid][pVremenska] == 1)
  1593. {
  1594. SetPlayerWeather(playerid,Prognozasys);
  1595. if(Snegic == 1)
  1596. {
  1597. CreateSnow(playerid);
  1598. }
  1599.  
  1600. }
  1601. }
  1602. ///////////////////////////////////////////////////////////////////////////////
  1603.  
  1604. //zlatara ULAZ IZLAZ
  1605. if(IsPlayerInRangeOfPoint(playerid,2,941.0907,-1718.6198,13.9699))
  1606. {
  1607.  
  1608. SetPlayerInterior(playerid,5);
  1609. SetPlayerVirtualWorld(playerid,1105);
  1610. Dimi_SetPlayerPos(playerid,3.2060,-129.6617,1004.2202);
  1611. SetCameraBehindPlayer(playerid);
  1612. GMT(playerid,"~w~Zlatara Beograd..",3000,1);
  1613. PlayerInfo[playerid][pInt] = 1;
  1614. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1615. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1616. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1617. }
  1618. else if(IsPlayerInRangeOfPoint(playerid,2,3.2060,-129.6617,1004.2202))
  1619. {
  1620. SetPlayerInterior(playerid,0);
  1621. SetPlayerVirtualWorld(playerid,0);
  1622. Dimi_SetPlayerPos(playerid,941.0907,-1718.6198,13.9699);
  1623. SetCameraBehindPlayer(playerid);
  1624. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1625. SetPlayerWeather(playerid,Prognozasys);
  1626. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1627. GMT(playerid,"~w~Beograd..",3000,1);
  1628. PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1629. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1630. if(PI[playerid][pVremenska] == 1)
  1631. {
  1632. SetPlayerWeather(playerid,Prognozasys);
  1633. if(Snegic == 1)
  1634. {
  1635. CreateSnow(playerid);
  1636. }
  1637.  
  1638. }
  1639. }
  1640.  
  1641. //////////////////////////////////////////////////////////////////////////////
  1642. //banka ULAZ IZLAZ
  1643. if(IsPlayerInRangeOfPoint(playerid,2,1466.1101,-1010.3317,26.8438))
  1644. {
  1645.  
  1646. SetPlayerInterior(playerid,0);
  1647. SetPlayerVirtualWorld(playerid,0);
  1648. Dimi_SetPlayerPos(playerid, 204.5982,-202.8242,1002.7834);
  1649. SetCameraBehindPlayer(playerid);
  1650. GMT(playerid,"~w~Banka Beograd..",3000,1);
  1651. PlayerInfo[playerid][pInt] = 1;
  1652. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1653. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1654. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1655. }
  1656. else if(IsPlayerInRangeOfPoint(playerid,2, 204.5982,-202.8242,1002.7834))
  1657. {
  1658. SetPlayerInterior(playerid,0);
  1659. SetPlayerVirtualWorld(playerid,0);
  1660. Dimi_SetPlayerPos(playerid,1466.1101,-1010.3317,26.8438);
  1661. SetCameraBehindPlayer(playerid);
  1662. GMT(playerid,"~w~Beograd..",3000,1);
  1663. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1664. SetPlayerWeather(playerid,Prognozasys);
  1665. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1666. PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1667. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1668. if(PI[playerid][pVremenska] == 1)
  1669. {
  1670. SetPlayerWeather(playerid,Prognozasys);
  1671. if(Snegic == 1)
  1672. {
  1673. CreateSnow(playerid);
  1674. }
  1675.  
  1676. }
  1677. }
  1678.  
  1679.  
  1680. if(PolazeVozacki[playerid] == 1)
  1681. {
  1682. if(IsPlayerInRangeOfPoint(playerid,2,-2029.5785,-119.4927,1035.1719))
  1683. {
  1684.  
  1685. SetPlayerInterior(playerid,0);
  1686. SetPlayerVirtualWorld(playerid,0);
  1687. PI[playerid][pInt] = 0;
  1688. Dimi_SetPlayerPos(playerid,-2029.8140,-120.9832,35.1747);
  1689. SetCameraBehindPlayer(playerid);
  1690. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1691. GMT(playerid,"~w~Poligon.",3000,1);
  1692. SCM(playerid,lightred,"[B:RP] Dobro dosli na poligon auto skole udjite u vozilo pored !"); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1693.  
  1694. }
  1695. else if(IsPlayerInRangeOfPoint(playerid,2,-2029.8140,-120.9832,35.1747))
  1696. {
  1697. if(!IsPlayerInAnyVehicle(playerid))
  1698. SetPlayerInterior(playerid,3);
  1699. SetPlayerVirtualWorld(playerid,29);
  1700. Dimi_SetPlayerPos(playerid,-2029.5785,-119.4927,1035.1719);
  1701. SetCameraBehindPlayer(playerid);
  1702. SetPlayerWeather(playerid,Prognozasys);
  1703. GMT(playerid,"~w~Auto skola",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1704. PI[playerid][pInt] = 1;
  1705. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1706. if(PI[playerid][pVremenska] == 1)
  1707. {
  1708. SetPlayerWeather(playerid,Prognozasys);
  1709. if(Snegic == 1)
  1710. {
  1711. CreateSnow(playerid);
  1712. }
  1713.  
  1714. }
  1715. }
  1716. }
  1717.  
  1718. if(IsPlayerInRangeOfPoint(playerid,2,1481.1609,-1770.7822,18.7958))
  1719. {
  1720.  
  1721. SetPlayerInterior(playerid,3);
  1722. Dimi_SetPlayerPos(playerid,388.8025,173.9497,1008.3828);
  1723. SetCameraBehindPlayer(playerid);
  1724. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1725. GMT(playerid,"~w~Opstina.",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1726. SetPlayerVirtualWorld(playerid,1002);
  1727. PI[playerid][pInt] = 1;
  1728. }
  1729. else if(IsPlayerInRangeOfPoint(playerid,2,389.8468,173.8213,1008.3828))
  1730. {
  1731. SetPlayerInterior(playerid,0);
  1732. SetPlayerVirtualWorld(playerid,0);
  1733. Dimi_SetPlayerPos(playerid,1481.3462,-1770.3318,18.7958);
  1734. SetCameraBehindPlayer(playerid);
  1735. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1736. SetPlayerWeather(playerid,Prognozasys);
  1737. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1738. GMT(playerid,"~w~Beograd",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1739. PI[playerid][pInt] = 0;
  1740. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1741. if(PI[playerid][pVremenska] == 1)
  1742. {
  1743. SetPlayerWeather(playerid,Prognozasys);
  1744. if(Snegic == 1)
  1745. {
  1746. CreateSnow(playerid);
  1747. }
  1748.  
  1749. }
  1750. }
  1751. ////////////////////////////////BANDE MAFIJE ULAZ/IZLAZ///////////////////////////
  1752.  
  1753. if(IsPlayerInRangeOfPoint(playerid,2.5,2495.3865,-1690.1621,14.7656))
  1754. {
  1755.  
  1756.  
  1757. SetPlayerInterior(playerid,3);
  1758. Dimi_SetPlayerPos(playerid,2496.0120,-1692.9453,1014.7422);
  1759. SetCameraBehindPlayer(playerid);
  1760. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1761. GMT(playerid,"~g~Grove Street Family",3000,1);
  1762. PlayerInfo[playerid][pInt] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1763. }
  1764.  
  1765. else if(IsPlayerInRangeOfPoint(playerid,2,2496.0120,-1692.9453,1014.7422))
  1766. {
  1767.  
  1768. SetPlayerInterior(playerid,0);
  1769. Dimi_SetPlayerPos(playerid,2495.3865,-1690.1621,14.7656);
  1770. SetCameraBehindPlayer(playerid);
  1771. GMT(playerid,"~w~Groove..",3000,1);
  1772. PlayerInfo[playerid][pInt] = 0;
  1773. SetPlayerWeather(playerid,Prognozasys);
  1774. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1775. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1776. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1777. if(PI[playerid][pVremenska] == 1)
  1778. {
  1779. SetPlayerWeather(playerid,Prognozasys);
  1780. if(Snegic == 1)
  1781. {
  1782. CreateSnow(playerid);
  1783. }
  1784.  
  1785. }
  1786. }
  1787.  
  1788.  
  1789. if(IsPlayerInRangeOfPoint(playerid,2.5,2515.9651,-1466.5414,24.5987))
  1790. {
  1791.  
  1792. SetPlayerInterior(playerid,5);
  1793. Dimi_SetPlayerPos(playerid,318.7038,1114.4841,1083.8828);
  1794. SetCameraBehindPlayer(playerid);
  1795. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1796. GMT(playerid,"~p~Ballas",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1797. PlayerInfo[playerid][pInt] = 1;
  1798. }
  1799.  
  1800. else if(IsPlayerInRangeOfPoint(playerid,2,318.7038,1114.4841,1083.8828))
  1801. {
  1802. if(!IsPlayerInAnyVehicle(playerid))
  1803. SetPlayerInterior(playerid,0);
  1804. Dimi_SetPlayerPos(playerid,2515.9651,-1466.5414,24.5987);
  1805. SetCameraBehindPlayer(playerid);
  1806. GMT(playerid,"~w~Ballasi....",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1807. PlayerInfo[playerid][pInt] = 0;
  1808. SetPlayerWeather(playerid,Prognozasys);
  1809. TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
  1810. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  1811. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1812. if(PI[playerid][pVremenska] == 1)
  1813. {
  1814. SetPlayerWeather(playerid,Prognozasys);
  1815. if(Snegic == 1)
  1816. {
  1817. CreateSnow(playerid);
  1818. }
  1819.  
  1820. }
  1821. }
  1822.  
  1823.  
  1824.  
  1825. if(IsPlayerInRangeOfPoint(playerid,2.5,2557.7966,-1131.7148,67.0630))
  1826. {
  1827.  
  1828. SetPlayerInterior(playerid,2);
  1829. Dimi_SetPlayerPos(playerid,2468.7251,-1698.4789,1013.5078);
  1830. SetCameraBehindPlayer(playerid);
  1831. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1832. GMT(playerid,"~y~MS13",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1833. PlayerInfo[playerid][pInt] = 1;
  1834. }
  1835.  
  1836. else if(IsPlayerInRangeOfPoint(playerid,2,2468.7251,-1698.4789,1013.5078))
  1837. {
  1838.  
  1839. SetPlayerInterior(playerid,0);
  1840. Dimi_SetPlayerPos(playerid,2557.7966,-1131.7148,67.0630);
  1841. SetCameraBehindPlayer(playerid);
  1842. SetPlayerWeather(playerid,Prognozasys);
  1843. GMT(playerid,"~w~Ms13....",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1844. PlayerInfo[playerid][pInt] = 0;
  1845. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1846. if(PI[playerid][pVremenska] == 1)
  1847. {
  1848. SetPlayerWeather(playerid,Prognozasys);
  1849. if(Snegic == 1)
  1850. {
  1851. CreateSnow(playerid);
  1852. }
  1853.  
  1854. }
  1855. }
  1856.  
  1857.  
  1858.  
  1859. if(IsPlayerInRangeOfPoint(playerid,2.5,2787.0718,-1952.5209,13.5469))
  1860. {
  1861.  
  1862. SetPlayerInterior(playerid,10);
  1863. Dimi_SetPlayerPos(playerid, 2270.4104,-1210.3344,1047.5625);
  1864. SetCameraBehindPlayer(playerid);
  1865. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1866. GMT(playerid,"~b~~h~Surenos",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1867. PlayerInfo[playerid][pInt] = 1;
  1868. }
  1869.  
  1870. else if(IsPlayerInRangeOfPoint(playerid,2, 2270.4104,-1210.3344,1047.5625))
  1871. {
  1872.  
  1873. SetPlayerInterior(playerid,0);
  1874. Dimi_SetPlayerPos(playerid,2787.0718,-1952.5209,13.5469);
  1875. SetCameraBehindPlayer(playerid);
  1876. SetPlayerWeather(playerid,Prognozasys);
  1877. GMT(playerid,"~w~LS....",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1878. PlayerInfo[playerid][pInt] = 0;
  1879. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1880. if(PI[playerid][pVremenska] == 1)
  1881. {
  1882. SetPlayerWeather(playerid,Prognozasys);
  1883. if(Snegic == 1)
  1884. {
  1885. CreateSnow(playerid);
  1886. }
  1887.  
  1888. }
  1889. }
  1890.  
  1891.  
  1892.  
  1893. if(IsPlayerInRangeOfPoint(playerid,2.5,1298.9650,-799.6069,84.1406))
  1894. {
  1895.  
  1896. SetPlayerInterior(playerid,5);
  1897. Dimi_SetPlayerPos(playerid,1279.8193,-789.0797,1084.0078);
  1898. SetCameraBehindPlayer(playerid);
  1899. SetPlayerVirtualWorld(playerid,14);
  1900. GMT(playerid,"~w~Ruska Mafija HQ.",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1901. PlayerInfo[playerid][pInt] = 1;
  1902. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1903. }
  1904.  
  1905. else if(IsPlayerInRangeOfPoint(playerid,2,1279.8193,-789.0797,1084.0078))
  1906. {
  1907.  
  1908. SetPlayerInterior(playerid,0);
  1909. Dimi_SetPlayerPos(playerid,1298.9650,-799.6069,84.1406);
  1910. SetCameraBehindPlayer(playerid);
  1911. SetPlayerVirtualWorld(playerid,0);
  1912. GMT(playerid,"~w~Ruska Mafija..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1913. PlayerInfo[playerid][pInt] = 0;
  1914. SetPlayerWeather(playerid,Prognozasys);
  1915. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1916. if(PI[playerid][pVremenska] == 1)
  1917. {
  1918. SetPlayerWeather(playerid,Prognozasys);
  1919. if(Snegic == 1)
  1920. {
  1921. CreateSnow(playerid);
  1922. }
  1923.  
  1924. }
  1925. }
  1926.  
  1927. if(IsPlayerInRangeOfPoint(playerid,2.5,1123.5188,-2037.1211,69.8868))
  1928. {
  1929.  
  1930. SetPlayerInterior(playerid,5);
  1931. SetPlayerVirtualWorld(playerid,13);
  1932. Dimi_SetPlayerPos(playerid,1261.3114,-785.3129,1091.9063);
  1933. SetCameraBehindPlayer(playerid);
  1934. GMT(playerid,"~w~La Cosa Nostra..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1935. PlayerInfo[playerid][pInt] = 1;
  1936. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1937. }
  1938.  
  1939.  
  1940. else if(IsPlayerInRangeOfPoint(playerid,2,1261.3114,-785.3129,1091.9063))
  1941. {
  1942.  
  1943. SetPlayerInterior(playerid,0);
  1944. Dimi_SetPlayerPos(playerid,1123.5188,-2037.1211,69.8868);
  1945. SetCameraBehindPlayer(playerid);
  1946. SetPlayerVirtualWorld(playerid,0);
  1947. GMT(playerid,"~w~Cosa Nostra..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1948. PlayerInfo[playerid][pInt] = 0;
  1949. SetPlayerWeather(playerid,Prognozasys);
  1950. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1951. if(PI[playerid][pVremenska] == 1)
  1952. {
  1953. SetPlayerWeather(playerid,Prognozasys);
  1954. if(Snegic == 1)
  1955. {
  1956. CreateSnow(playerid);
  1957. }
  1958.  
  1959. }
  1960. }
  1961.  
  1962.  
  1963. if(IsPlayerInRangeOfPoint(playerid,2,2787.1189,-1616.9078,10.9219))
  1964. {
  1965.  
  1966. SetPlayerInterior(playerid,3);
  1967. SetPlayerVirtualWorld(playerid,1117);
  1968. Dimi_SetPlayerPos(playerid,974.5803,-8.7506,1001.1484);
  1969. SetCameraBehindPlayer(playerid);
  1970. GMT(playerid,"~w~Triada..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1971. PlayerInfo[playerid][pInt] = 1;
  1972. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  1973. }
  1974. else if(IsPlayerInRangeOfPoint(playerid,2,974.5803,-8.7506,1001.1484))
  1975. {
  1976. SetPlayerInterior(playerid,0);
  1977. Dimi_SetPlayerPos(playerid,2787.1189,-1616.9078,10.9219);
  1978. SetCameraBehindPlayer(playerid);
  1979. GMT(playerid,"~w~Beograd..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1980. PlayerInfo[playerid][pInt] = 0;
  1981. SetPlayerVirtualWorld(playerid,0);
  1982. SetPlayerWeather(playerid,Prognozasys);
  1983. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  1984. if(PI[playerid][pVremenska] == 1)
  1985. {
  1986. SetPlayerWeather(playerid,Prognozasys);
  1987. if(Snegic == 1)
  1988. {
  1989. CreateSnow(playerid);
  1990. }
  1991.  
  1992. }
  1993. }
  1994.  
  1995.  
  1996. if(IsPlayerInRangeOfPoint(playerid,3.5,1102.0640,-308.6310,73.9922))
  1997. {
  1998.  
  1999. SetPlayerInterior(playerid,3);
  2000. SetPlayerVirtualWorld(playerid,1116);
  2001. Dimi_SetPlayerPos(playerid,966.9965, -53.3372, 999.9889);
  2002. SetCameraBehindPlayer(playerid);
  2003. GMT(playerid,"~w~Mexican Maffia",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2004. PlayerInfo[playerid][pInt] = 1;
  2005. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  2006. }
  2007.  
  2008. else if(IsPlayerInRangeOfPoint(playerid,2,966.9965, -53.3372, 999.9889))
  2009. {
  2010.  
  2011. SetPlayerInterior(playerid,0);
  2012. Dimi_SetPlayerPos(playerid,1102.0640,-308.6310,73.9922);
  2013. SetCameraBehindPlayer(playerid);
  2014. SetPlayerVirtualWorld(playerid,0);
  2015. GMT(playerid,"~w~Mexican maffia...",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2016. PlayerInfo[playerid][pInt] = 0;
  2017. SetPlayerWeather(playerid,Prognozasys);
  2018. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2019. if(PI[playerid][pVremenska] == 1)
  2020. {
  2021. SetPlayerWeather(playerid,Prognozasys);
  2022. if(Snegic == 1)
  2023. {
  2024. CreateSnow(playerid);
  2025. }
  2026.  
  2027. }
  2028. }
  2029.  
  2030.  
  2031.  
  2032. if(IsPlayerInRangeOfPoint(playerid,3.5,1764.9974,-1342.0043,15.7586))
  2033. {
  2034.  
  2035. SetPlayerInterior(playerid,3);
  2036. SetPlayerVirtualWorld(playerid,15);
  2037. Dimi_SetPlayerPos(playerid,235.34 ,1186.68, 1080.26); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2038. SetCameraBehindPlayer(playerid);
  2039. GMT(playerid,"~w~PO2",3000,1);
  2040. PlayerInfo[playerid][pInt] = 1;
  2041. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  2042. }
  2043.  
  2044. else if(IsPlayerInRangeOfPoint(playerid,2,235.34 ,1186.68, 1080.26))
  2045. {
  2046.  
  2047. SetPlayerInterior(playerid,0);
  2048. Dimi_SetPlayerPos(playerid,1764.9974,-1342.0043,15.7586); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2049. SetCameraBehindPlayer(playerid);
  2050. SetPlayerVirtualWorld(playerid,0);
  2051. GMT(playerid,"~w~P02.",3000,1);
  2052. PlayerInfo[playerid][pInt] = 0;
  2053. SetPlayerWeather(playerid,Prognozasys);
  2054. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2055. if(PI[playerid][pVremenska] == 1)
  2056. {
  2057. SetPlayerWeather(playerid,Prognozasys);
  2058. if(Snegic == 1)
  2059. {
  2060. CreateSnow(playerid);
  2061. }
  2062.  
  2063. }
  2064. }
  2065.  
  2066.  
  2067.  
  2068.  
  2069. for(new i; i < MAX_FIRMI; i++)
  2070. {
  2071. if(IsPlayerInRangeOfPoint(playerid, 3.0, FI[i][fUlazX], FI[i][fUlazY], FI[i][fUlazZ]) && !IsPlayerInAnyVehicle(playerid))
  2072. {
  2073. if(FI[i][fVrsta] == VRSTA_SBIZZ)
  2074. {
  2075.  
  2076. if(PlayerInfo[playerid][pPosedovanjeFirme] == i)
  2077. {
  2078. FI[i][fNeaktivnost] = 0;
  2079. SacuvajFirmu(i);
  2080. SCM(playerid,-1,"Restartovali ste neaktvinost vaseg biznisa !");
  2081. FirmaLabelIPickup(i);
  2082. }
  2083. }
  2084. if(!IsPlayerInAnyVehicle(playerid))
  2085. if(FI[i][fVrsta] == VRSTA_SBIZZ) return GMT(playerid,"~r~Ne mozete uci u tu firmu",1000,1);
  2086.  
  2087. if(FI[i][fZatvoreno] == 1) return GMT(playerid,"~w~Firma ~b~zakljucana",5000,3);
  2088. SetPlayerVirtualWorld(playerid, FI[i][fVW]);
  2089. SetPlayerInterior(playerid, FI[i][fInt]);
  2090. Dimi_SetPlayerPos(playerid, FI[i][fIzlazX], FI[i][fIzlazY], FI[i][fIzlazZ]); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2091. UsaoFirma[playerid] = i;
  2092. PlayerInfo[playerid][pInt] = 1;
  2093. SetPlayerWeather(playerid,1); DeleteSnow(playerid);
  2094. TogglePlayerControllable(playerid, 0);
  2095. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  2096. {
  2097. if(FI[i][fNeaktivnost] >=1)
  2098. if(PlayerInfo[playerid][pPosedovanjeFirme] == i)
  2099. {
  2100. FI[i][fNeaktivnost] = 0;
  2101. SacuvajFirmu(i);
  2102. SCM(playerid,-1,"Restartovali ste neaktvinost vase firme !");
  2103. FirmaLabelIPickup(i);
  2104. }
  2105. }
  2106. if(FI[i][fVrsta] == VRSTA_MARKET) GMT(playerid,"~w~Market 24/7",5000,1);
  2107. else if(FI[i][fVrsta] == VRSTA_SEXSHOP) GMT(playerid,"~w~Sex Shop",5000,1);
  2108. else if(FI[i][fVrsta] == VRSTA_GUNSHOP) GMT(playerid,"~w~Ammounation Shop",5000,1);
  2109. else if(FI[i][fVrsta] == VRSTA_RESTORAN) GMT(playerid,"~w~Restoran",5000,1);
  2110. else if(FI[i][fVrsta] == VRSTA_BURG) GMT(playerid,"~w~Bureger Shoter",5000,1);
  2111. else if(FI[i][fVrsta] == VRSTA_CLUCKIN) GMT(playerid,"~w~Cluckin Bell",5000,1);
  2112. else if(FI[i][fVrsta] == VRSTA_PIZZA) GMT(playerid,"~w~Picerija",5000,1);
  2113. else if(FI[i][fVrsta] == VRSTA_DISCO) GMT(playerid,"~w~Disco Club",5000,1);
  2114. else if(FI[i][fVrsta] == VRSTA_BAR) GMT(playerid,"~w~Kafana",5000,3);
  2115. else if(FI[i][fVrsta] == VRSTA_PIGPEN) GMT(playerid,"~w~Pig Pen",5000,1);
  2116. else if(FI[i][fVrsta] == VRSTA_GYM) GMT(playerid,"~w~Gym teretana",5000,3);
  2117. else if(FI[i][fVrsta] == VRSTA_BARBER) GMT(playerid,"~w~Frizerski Salon~n~Komanda /hair",5000,1);
  2118. else if(FI[i][fVrsta] == VRSTA_BINCO) GMT(playerid,"~w~Binco Butik",5000,3);
  2119. else if(FI[i][fVrsta] == VRSTA_VICTIM) GMT(playerid,"~w~Victim Butik",5000,1);
  2120. else if(FI[i][fVrsta] == VRSTA_SUBURBAN) GMT(playerid,"~w~Suburban butik",5000,3);
  2121. else if(FI[i][fVrsta] == VRSTA_ZIP) GMT(playerid,"~w~Zip Butik",5000,1);
  2122. else if(FI[i][fVrsta] == VRSTA_KLADIONICA) GMT(playerid,"~w~Kladionica Soocer",5000,11);
  2123. else if(FI[i][fVrsta] == VRSTA_ELECTRONIC) GMT(playerid,"~w~Mobile Shop",5000,11);
  2124.  
  2125. }
  2126. if(IsPlayerInRangeOfPoint(playerid, 3.0, FI[i][fIzlazX], FI[i][fIzlazY], FI[i][fIzlazZ])
  2127. && GetPlayerVirtualWorld(playerid) == FI[i][fVW] && !IsPlayerInAnyVehicle(playerid))
  2128. {
  2129. SetPlayerInterior(playerid, 0);
  2130. SetPlayerVirtualWorld(playerid, 0);
  2131. Dimi_SetPlayerPos(playerid, FI[i][fUlazX], FI[i][fUlazY], FI[i][fUlazZ]); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2132. UsaoFirma[playerid] = -1;
  2133. PlayerInfo[playerid][pInt] = 0;
  2134. PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
  2135. TogglePlayerControllable(playerid, 0);
  2136. antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2137. if(PI[playerid][pVremenska] == 1)
  2138. {
  2139. SetPlayerWeather(playerid,Prognozasys);
  2140. if(Snegic == 1)
  2141. {
  2142. CreateSnow(playerid);
  2143. }
  2144.  
  2145. }
  2146.  
  2147. }
  2148. }
  2149.  
  2150. }
  2151. }
  2152.  
  2153. if(newkeys & KEY_HANDBRAKE)
  2154. {
  2155. if(ImaLisice[playerid] == 1 || Oboren[playerid] == 1 || Zavezan[playerid] == 1|| IgracTazovan[playerid] == 1 || MrtavIgrac[playerid] == 1)
  2156. {
  2157. SCM(playerid,grey,"Ne mozete stiskati F za izlazak/ulazak iz objekta dok ste /tazovani/oboreni/uhapseni/vezani u animaciji !");
  2158. return 1;
  2159. }
  2160. if(animacija[playerid] == 1)
  2161. {
  2162. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
  2163. ClearAnimations(playerid);
  2164. TextDrawHideForPlayer(playerid,RMB0);
  2165. animacija[playerid] = 0;
  2166. }
  2167. }
  2168. ////////////////////////////////////////////////////////////////////////////STRELJANA/////////////////////////////////////////////////////////////////////
  2169. if(StreljanaP[playerid] > 0 && !IsPlayerInAnyVehicle(playerid) && korististreljanu == 1)
  2170. {
  2171. if(GetPlayerWeapon(playerid) > 0)
  2172. {
  2173. if(oldkeys & KEY_RIGHT && newkeys & KEY_FIRE)
  2174. {
  2175.  
  2176. if(IsPlayerAiming(playerid, StreljanaOb[1]))
  2177. {
  2178. UpucaoStr[playerid]++;
  2179. if(UpucaoStr[playerid] > 5)
  2180. {
  2181. if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
  2182. else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
  2183. else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
  2184. else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
  2185. else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
  2186. else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
  2187. else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
  2188. else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
  2189. else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
  2190. SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
  2191. ResetPlayerWeapons(playerid);
  2192. StreljanaP[playerid] = 0;
  2193. korististreljanu = 0;
  2194. KillTimer(StrTimer[playerid]);
  2195. UnistiSObjekte();
  2196. UpucaoStr[playerid] = 0;
  2197. Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2198. SetCameraBehindPlayer(playerid);
  2199. UnistiSObjekte();
  2200. Ustreljani[playerid] = 0;
  2201. return true;
  2202. }
  2203. new ups[120];
  2204. format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
  2205. SCM(playerid,-1,ups);
  2206. DestroyDynamicObject(StreljanaOb[1]);
  2207. }
  2208. else if(IsPlayerAiming(playerid, StreljanaOb[2]))
  2209. {
  2210. UpucaoStr[playerid]++;
  2211. if(UpucaoStr[playerid] > 5)
  2212. {
  2213. if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
  2214. else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
  2215. else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
  2216. else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
  2217. else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
  2218. else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
  2219. else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
  2220. else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
  2221. else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
  2222. SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
  2223. ResetPlayerWeapons(playerid);
  2224. StreljanaP[playerid] = 0;
  2225. korististreljanu = 0;
  2226. KillTimer(StrTimer[playerid]);
  2227. UnistiSObjekte();
  2228. UpucaoStr[playerid] = 0;
  2229. Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2230. SetCameraBehindPlayer(playerid);
  2231. UnistiSObjekte();
  2232. Ustreljani[playerid] = 0;
  2233. return true;
  2234. }
  2235. new ups[120];
  2236. format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
  2237. SCM(playerid,-1,ups);
  2238. DestroyDynamicObject(StreljanaOb[2]);
  2239. }
  2240. else if(IsPlayerAiming(playerid, StreljanaOb[3]))
  2241. {
  2242. UpucaoStr[playerid]++;
  2243. if(UpucaoStr[playerid] > 5)
  2244. {
  2245. if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
  2246. else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
  2247. else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
  2248. else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
  2249. else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
  2250. else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
  2251. else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
  2252. else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
  2253. else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
  2254. SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
  2255. ResetPlayerWeapons(playerid);
  2256. StreljanaP[playerid] = 0;
  2257. korististreljanu = 0;
  2258. KillTimer(StrTimer[playerid]);
  2259. UnistiSObjekte();
  2260. UpucaoStr[playerid] = 0;
  2261. Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2262. SetCameraBehindPlayer(playerid);
  2263. UnistiSObjekte();
  2264. Ustreljani[playerid] = 0;
  2265. return true;
  2266. }
  2267. new ups[120];
  2268. format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
  2269. SCM(playerid,-1,ups);
  2270. DestroyDynamicObject(StreljanaOb[3]);
  2271. }
  2272. else if(IsPlayerAiming(playerid, StreljanaOb[4]))
  2273. {
  2274. UpucaoStr[playerid]++;
  2275. if(UpucaoStr[playerid] > 5)
  2276. {
  2277. if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
  2278. else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
  2279. else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
  2280. else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
  2281. else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
  2282. else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
  2283. else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
  2284. else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
  2285. else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
  2286. SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
  2287. ResetPlayerWeapons(playerid);
  2288. StreljanaP[playerid] = 0;
  2289. korististreljanu = 0;
  2290. KillTimer(StrTimer[playerid]);
  2291. UnistiSObjekte();
  2292. UpucaoStr[playerid] = 0;
  2293. Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2294. SetCameraBehindPlayer(playerid);
  2295. UnistiSObjekte();
  2296. Ustreljani[playerid] = 0;
  2297. return true;
  2298. }
  2299. new ups[120];
  2300. format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
  2301. SCM(playerid,-1,ups);
  2302. DestroyDynamicObject(StreljanaOb[4]);
  2303. }
  2304. else if(IsPlayerAiming(playerid, StreljanaOb[5]))
  2305. {
  2306. UpucaoStr[playerid]++;
  2307. if(UpucaoStr[playerid] > 5)
  2308. {
  2309. if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
  2310. else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
  2311. else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
  2312. else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
  2313. else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
  2314. else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
  2315. else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
  2316. else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
  2317. else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
  2318. SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
  2319. ResetPlayerWeapons(playerid);
  2320. StreljanaP[playerid] = 0;
  2321. korististreljanu = 0;
  2322. KillTimer(StrTimer[playerid]);
  2323. UnistiSObjekte();
  2324. UpucaoStr[playerid] = 0;
  2325. Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625);
  2326. SetCameraBehindPlayer(playerid); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2327. UnistiSObjekte();
  2328. Ustreljani[playerid] = 0;
  2329. return true;
  2330. }
  2331. new ups[120];
  2332. format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
  2333. SCM(playerid,-1,ups);
  2334. DestroyDynamicObject(StreljanaOb[5]);
  2335. }
  2336. else if(IsPlayerAiming(playerid, StreljanaOb[6]))
  2337. {
  2338. UpucaoStr[playerid]++;
  2339. if(UpucaoStr[playerid] > 5)
  2340. {
  2341. if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
  2342. else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
  2343. else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
  2344. else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
  2345. else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
  2346. else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
  2347. else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
  2348. else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
  2349. else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
  2350. SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
  2351. ResetPlayerWeapons(playerid);
  2352. StreljanaP[playerid] = 0;
  2353. korististreljanu = 0;
  2354. KillTimer(StrTimer[playerid]);
  2355. UnistiSObjekte();
  2356. UpucaoStr[playerid] = 0;
  2357. Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
  2358. SetCameraBehindPlayer(playerid);
  2359. UnistiSObjekte();
  2360. Ustreljani[playerid] = 0;
  2361. return true;
  2362. }
  2363. new ups[120];
  2364. format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
  2365. SCM(playerid,-1,ups);
  2366. DestroyDynamicObject(StreljanaOb[6]);
  2367. }
  2368. }
  2369. }
  2370. return 1;
  2371. }
  2372.  
  2373. //////////////////////////////////////////////////////////////////////KEY WALK/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2374.  
  2375.  
  2376. //////////////////////////PALI SVETLA/////////////////////////////////////
  2377. if(newkeys == KEY_SUBMISSION )
  2378. {
  2379. if(IsPlayerInAnyVehicle(playerid))
  2380. {
  2381. if(IsPlayerConnected(playerid))
  2382. {
  2383.  
  2384. new veh = GetPlayerVehicleID(playerid);
  2385.  
  2386. GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
  2387. if(VoziloJeBicikla(GetVehicleModel(veh))) return SCM(playerid,-1,"Ovo biciklo nema svetla !");
  2388.  
  2389. {
  2390. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2391. {
  2392. //if(Svetla[playerid] == 1) return SCM(playerid,grey, "Ne mozes sada!");
  2393. if(lights == VEHICLE_PARAMS_ON)
  2394. {
  2395. SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
  2396. SCM(playerid, -1, ""BELA"[B:RP]: {FFFFFF}Ugasili ste svetla.");
  2397. new mrk[128];
  2398. format(mrk, sizeof(mrk), "* %s gasi svetla na vozilu.", GetName(playerid));
  2399. ProxDetector(30.0, playerid, mrk, roza2,roza2,roza2,roza2,roza2);
  2400.  
  2401.  
  2402.  
  2403.  
  2404. }
  2405. else
  2406. {
  2407. SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
  2408. SCM(playerid, -1,"[B:RP]: {FFFFFF}Upalili ste svetla na vozilu.");
  2409. new mrk[128];
  2410. format(mrk, sizeof(mrk), "* %s pali svetla na vozilu.", GetName(playerid));
  2411. ProxDetector(30.0, playerid, mrk, roza2,roza2,roza2,roza2,roza2);
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417. }
  2418. }
  2419. }
  2420. }
  2421. }
  2422. }
  2423.  
  2424. return 1;
  2425. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement