Guest User

Untitled

a guest
Mar 30th, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.49 KB | None | 0 0
  1. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2. {
  3. new string[128];
  4. new sendername[MAX_PLAYER_NAME];
  5. new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
  6. new newcar = GetPlayerVehicleID(playerid);
  7. new gun1 = GetPlayerWeapon(playerid);
  8. new gunname1[24];
  9. GetWeaponName(gun1,gunname1,sizeof(gunname1));
  10. if(IsKeyJustDown(KEY_HANDBRAKE,newkeys,oldkeys))
  11. {
  12. StopLoopingAnim(playerid);
  13. TextDrawHideForPlayer(playerid,txtAnimHelper);
  14. animation[playerid] = 0;
  15. }
  16. //=============================================================================//
  17. if((newkeys & KEY_YES))
  18. {
  19. if(IsPlayerInRangeOfPoint(playerid, 10.0, 1497.6473,-1533.3241,1052.2877))
  20. {
  21. if (GetPlayerMoney(playerid) <= KupovnaCena)
  22. {
  23. GameTextForPlayer(playerid, "~r~Nemate dovoljno novca", 5000, 1);
  24. return 1;
  25. }
  26. format(string, sizeof(string), "* Kupili ste 1 zlatnik za $%d.", KupovnaCena);
  27. SendClientMessage(playerid, COLOR_WHITE, string);
  28. PlayerInfo[playerid][pZlato] += 1;
  29. KupovnaCena++;
  30. ProdajnaCena++;
  31. SafeGivePlayerMoney(playerid, -KupovnaCena);
  32. new berzastr[300];
  33. format(berzastr, sizeof(berzastr), "{F3FF02}ZLATARA\n[ /BUYGOLD ili Y ]\n[ /SELLGOLD ili N ]\n[ /GOLDHELP ]\nKupovna cena zlata: %d / g\nProdajna cena zlata: %d / g", KupovnaCena, ProdajnaCena);
  34. Update3DTextLabelText(berza, 0x00FFF9FF, berzastr);
  35. }
  36. SaveBerza();
  37. return 1;
  38. }
  39.  
  40. if((newkeys & KEY_NO))
  41. {
  42. if(IsPlayerInRangeOfPoint(playerid, 10.0, 1497.6473,-1533.3241,1052.2877))
  43. {
  44. if(PlayerInfo[playerid][pZlato] >= 1)
  45. {
  46. format(string, sizeof(string), "* Prodali ste 1 zlatnik za $%d.", ProdajnaCena);
  47. SendClientMessage(playerid, COLOR_WHITE, string);
  48. PlayerInfo[playerid][pZlato] -= 1;
  49. ProdajnaCena--;
  50. KupovnaCena--;
  51. SafeGivePlayerMoney(playerid, ProdajnaCena);
  52. new berzastr1[300];
  53. format(berzastr1, sizeof(berzastr1), "{F3FF02}ZLATARA\n[ /BUYGOLD ili Y ]\n[ /SELLGOLD ili N ]\n[ /GOLDHELP ]\nKupovna cena zlata: %d / g\nProdajna cena zlata: %d / g", KupovnaCena, ProdajnaCena);
  54. Update3DTextLabelText(berza, 0x00FFF9FF, berzastr1);
  55. }
  56. else
  57. {
  58. SendClientMessage(playerid, COLOR_GREY, " Nemate zlata!");
  59. }
  60. }
  61. SaveBerza();
  62. return 1;
  63. }
  64. //========================================================================//
  65. else if ((newkeys & KEY_SPRINT))
  66. {
  67. if(IsPlayerConnected(playerid))
  68. {
  69. if(IsWanking[playerid] == 1)
  70. {
  71. if(JustWanked[playerid] == 0)
  72. {
  73. JustWanked[playerid] = 1;
  74. ApplyAnimation(playerid,"PAULNMAC","wank_loop",4.1,0,1,1,1,0);
  75. TimesWanked[playerid] ++;
  76. SetTimerEx("ResetWank",2000,0,"i",playerid);
  77. }
  78. else
  79. {
  80. SendClientMessage(playerid, COLOR_GREY, "* Ti si 'dotaknuo svoj tralalalala' nedavno, pricekaj nekoliko sekundi!");
  81. return 1;
  82. }
  83. }
  84. else if(GivingBlowjob[playerid] == 1)
  85. {
  86. ApplyAnimation(playerid,"BLOWJOBZ","BJ_COUCH_LOOP_W",4.1,0,0,0,1,0);
  87. }
  88. else if (OfficerCourseStep[playerid] != 255)
  89. {
  90. if(OfficerCourseStep[playerid] == 1)
  91. {
  92. OfficerCourseStep[playerid] = 1;
  93. ClearChatbox(playerid, 10);
  94. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- City Hall Police Academy ---------------------------------");
  95. SendClientMessage(playerid, COLOR_WHITE,"Welcome to the Optional Officer Test Course, offered by the City Hall of Los Santos");
  96. SendClientMessage(playerid, COLOR_WHITE,"Here, you will have a Course of not more than 15 Minutes to Learn how to be a Security Guard");
  97. SendClientMessage(playerid, COLOR_WHITE,"You will be teach on how to arrest a suspect, What to do, What to not do, And what could happen...");
  98. SendClientMessage(playerid, COLOR_WHITE,"Pay atention to the course carefully, You will be requiered to take a test later to get a Cop License");
  99. SendClientMessage(playerid, COLOR_WHITE,"The Test will have Ten Questions, you will be requiered to Answer 9 Correct to Pass, else you'll fail");
  100. ClearChatbox(playerid, 3);
  101. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  102. }
  103. else if(OfficerCourseStep[playerid] == 2)
  104. {
  105. OfficerCourseStep[playerid] = 1;
  106. ClearChatbox(playerid, 10);
  107. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Brief Explanation of the Job ---------------------------------");
  108. SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, you will have rights to wear an Uniform and carry Statal Issued Weapons.");
  109. SendClientMessage(playerid, COLOR_WHITE,"Abusing your weapons (Using them to DM) will result in a Suspension from Cop Duty.");
  110. SendClientMessage(playerid, COLOR_WHITE,"If you are suspended from cop duty, you wont be able to use your Security Guards Rights anymore till unbaned.");
  111. SendClientMessage(playerid, COLOR_WHITE,"As Officer, you will have to arrest all the Suspects (Orange), But Be careful! Do not Metagame!");
  112. SendClientMessage(playerid, COLOR_WHITE,"You will be able to open the doors of the LSPD, drive their cars and Use some commands such /radio");
  113. ClearChatbox(playerid, 3);
  114. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  115. }
  116. else if(OfficerCourseStep[playerid] == 3)
  117. {
  118. OfficerCourseStep[playerid] = 2;
  119. ClearChatbox(playerid, 10);
  120. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to do as a Security Guard ---------------------------------");
  121. SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job will be to take minor suspects into Custody with your Weapons (If Needed).");
  122. SendClientMessage(playerid, COLOR_WHITE,"You will be allowed to issue tickets, which will be your mayor job on the position apart of arresting.");
  123. SendClientMessage(playerid, COLOR_WHITE,"You can get hired as a security guard to secure places, BUT this requieres an officer approval first.");
  124. SendClientMessage(playerid, COLOR_WHITE,"You must bring Suspects (Oranges) down to the jail, Once they Surrender (Dark Orange) You may not attack them.");
  125. SendClientMessage(playerid, COLOR_WHITE,"You must use your RADIO to comunicate with the other officers if you are in trouble, always.");
  126. ClearChatbox(playerid, 3);
  127. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  128. }
  129. else if(OfficerCourseStep[playerid] == 4)
  130. {
  131. OfficerCourseStep[playerid] = 3;
  132. ClearChatbox(playerid, 10);
  133. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to NOT do as a Security Guard ---------------------------------");
  134. SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job wont be to take bribes and help criminals to fight the police or civilians.");
  135. SendClientMessage(playerid, COLOR_WHITE,"You are not allowed to issue tickets for no random reason nor abuse your /suspect Command for no reason.");
  136. SendClientMessage(playerid, COLOR_WHITE,"You may not take the cars and make a ferris wheel with them or leave then abandoned in the middle of nowhere.");
  137. SendClientMessage(playerid, COLOR_WHITE,"You may not use your weapons and cars to Deathmatch and carkill with them, that can lead to a server ban.");
  138. SendClientMessage(playerid, COLOR_WHITE,"You may not act like rambo and kill any suspect that you see on your TAB list, This is a roleplay server remember.");
  139. ClearChatbox(playerid, 3);
  140. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  141. }
  142. else if(OfficerCourseStep[playerid] == 5)
  143. {
  144. OfficerCourseStep[playerid] = 4;
  145. ClearChatbox(playerid, 10);
  146. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Corrupt Cop ---------------------------------");
  147. SendClientMessage(playerid, COLOR_WHITE,"You are considered corrupt if you break any server rule or law while carrying your uniform and are on duty.");
  148. SendClientMessage(playerid, COLOR_WHITE,"As a corrupt freecop, you can be hunted by the real police, the FBI or the Army if its really serious.");
  149. SendClientMessage(playerid, COLOR_WHITE,"If the police can't catch you, the administrators or the higher LEO will proceed to suspend you from cop duty.");
  150. SendClientMessage(playerid, COLOR_WHITE,"Repeatdely abuse of your weaponry / rights will lead to a server ban for Script Abuse, Deathmatching and Provoking.");
  151. SendClientMessage(playerid, COLOR_WHITE,"You can get Suspended from Active duty for more than a month, so be careful with your decissions, always.");
  152. ClearChatbox(playerid, 3);
  153. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  154. }
  155. else if(OfficerCourseStep[playerid] == 6)
  156. {
  157. OfficerCourseStep[playerid] = 5;
  158. ClearChatbox(playerid, 10);
  159. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Good Cop ---------------------------------");
  160. SendClientMessage(playerid, COLOR_WHITE,"You are considered a good cop if you don't break any law or server rule while on duty and you follow the protocol.");
  161. SendClientMessage(playerid, COLOR_WHITE,"As a good cop, your chances of being invited to the LSPD or getting accepted get increased a lot, by showing experience.");
  162. SendClientMessage(playerid, COLOR_WHITE,"As a non abusive cop, administrators will gain a good look of you and will start to trust you, even to make you a helper.");
  163. SendClientMessage(playerid, COLOR_WHITE,"If owners sees that you are good enough, they can even make you a platinium regular or master helper, or even a moderator.");
  164. SendClientMessage(playerid, COLOR_WHITE,"All these things can happen, so be careful with your decissions and take the correct ones, always!.");
  165. ClearChatbox(playerid, 3);
  166. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  167. }
  168. else if(OfficerCourseStep[playerid] == 7)
  169. {
  170. OfficerCourseStep[playerid] = 6;
  171. ClearChatbox(playerid, 10);
  172. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to arrest a Suspect ---------------------------------");
  173. SendClientMessage(playerid, COLOR_WHITE,"First ask him to surrender, if he doesn't use the non lethal force until he surrenders, if he doesn't proceed to kill him.");
  174. SendClientMessage(playerid, COLOR_WHITE,"Once he surrenders, he will become in a darker orange name, so don't let them fool you, look at the radio and their names.");
  175. SendClientMessage(playerid, COLOR_WHITE,"Read his rights (/mir) And take him to the LSPD, if he tries to escape kill or report him to the administration, your choice.");
  176. SendClientMessage(playerid, COLOR_WHITE,"Once you are done with the processing, proceed to jail him depending the severity of his crime, 1-5 minutes, always be fair.");
  177. SendClientMessage(playerid, COLOR_WHITE,"If he asks for a lawyer, you must stay until the lawyer arrives to the PD and start the discussion about the crime.");
  178. ClearChatbox(playerid, 3);
  179. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  180. }
  181. else if(OfficerCourseStep[playerid] == 8)
  182. {
  183. OfficerCourseStep[playerid] = 7;
  184. ClearChatbox(playerid, 10);
  185. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to Take down a suspect ---------------------------------");
  186. SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to use the force on you, by shooting you, you are allowed to shoot back without warning.");
  187. SendClientMessage(playerid, COLOR_WHITE,"Due the SA:MP Lag & Desync, always shoot to where he is heading, if he has low ping, depends on the ping.");
  188. SendClientMessage(playerid, COLOR_WHITE,"If there are more than two suspects and you are alone, RETREAT and call for backup, act like rambo if needed");
  189. SendClientMessage(playerid, COLOR_WHITE,"Do not waste your bullets on useless shoots, only fire if you are sure that you will give the suspect.");
  190. SendClientMessage(playerid, COLOR_WHITE,"To prevent them of escaping you can destroy the tires of their cars or shoot them thru the front glass.");
  191. ClearChatbox(playerid, 3);
  192. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  193. }
  194. else if(OfficerCourseStep[playerid] == 9)
  195. {
  196. OfficerCourseStep[playerid] = 8;
  197. ClearChatbox(playerid, 10);
  198. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to rush to a place ---------------------------------");
  199. SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to hide on an interior, call for backup, you don't know if he is going to shoot you when you get in or not.");
  200. SendClientMessage(playerid, COLOR_WHITE,"If backups arrives, always follow your superiors' orders, if they tell you to stay outside, stay there and do not act like rambo.");
  201. SendClientMessage(playerid, COLOR_WHITE,"If they tell you to rush with them, take their weapons and NEVER get away from them, do not act like rambo and the team.");
  202. SendClientMessage(playerid, COLOR_WHITE,"Before entering, its recommended to pop the suspect(s)'s cars tires, get in the car and tell someone else to shoot the tires.");
  203. SendClientMessage(playerid, COLOR_WHITE,"After all if they try to escape, use your weapon, shoot at them until they decide to surrender, if they don't, kill them");
  204. ClearChatbox(playerid, 3);
  205. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  206. }
  207. else if(OfficerCourseStep[playerid] == 10)
  208. {
  209. OfficerCourseStep[playerid] = 9;
  210. ClearChatbox(playerid, 10);
  211. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Some tips to be a great cop ---------------------------------");
  212. SendClientMessage(playerid, COLOR_WHITE,"Never give too high tickets, but not too low ones, if you give too much, people will hate, else they will think you are a fool.");
  213. SendClientMessage(playerid, COLOR_WHITE,"In a chase, use the tactic named 'lag pit', drive a bit ahead the suspect and try to ram them out of the road so you can slow them.");
  214. SendClientMessage(playerid, COLOR_WHITE,"If you are in an helicopter, always report yourself to the ATC and never Fly low, in case you are in low HP and kill everyone.");
  215. SendClientMessage(playerid, COLOR_WHITE,"Try to keep your Humour Sense and your Humour to the maximun, people will love that you threat them well and make a joke or two.");
  216. SendClientMessage(playerid, COLOR_WHITE,"Never do jokes such 'Pullover this is a cavity Search' or 'You're under arrest for being black', people hates such jokes.");
  217. ClearChatbox(playerid, 3);
  218. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  219. }
  220. else if(OfficerCourseStep[playerid] == 11)
  221. {
  222. OfficerCourseStep[playerid] = 10;
  223. ClearChatbox(playerid, 10);
  224. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How people will hate you ---------------------------------");
  225. SendClientMessage(playerid, COLOR_WHITE,"People will hate you if you always break the laws while on duty, such shooting to the air or wrecklessing driving.");
  226. SendClientMessage(playerid, COLOR_WHITE,"If you give someone a ticket for speeding, then you leave speeding, people will hate because you will abuse your sirens.");
  227. SendClientMessage(playerid, COLOR_WHITE,"Never exceed the ticket price, or the jail time, if someone pees on the plaza, doesn't means that you can give him 5 mins.");
  228. SendClientMessage(playerid, COLOR_WHITE,"Never abuse the suspect in any manner, sexually or phsycally, do not try to rape or hit them after they gave up, its DM...");
  229. SendClientMessage(playerid, COLOR_WHITE,"Doing jokes as suspect reasons or pulling someone for no reason can be annoying, people wont like you if you do that.");
  230. ClearChatbox(playerid, 3);
  231. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  232. }
  233. else if(OfficerCourseStep[playerid] == 12)
  234. {
  235. OfficerCourseStep[playerid] = 11;
  236. ClearChatbox(playerid, 10);
  237. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- The End, Good Job! ---------------------------------");
  238. SendClientMessage(playerid, COLOR_WHITE,"Finally we arrived to the end, this means that if you payed enough atention you're ready for the test.");
  239. SendClientMessage(playerid, COLOR_WHITE,"The test for having a cop license will cost you 5000$, failed or passed you'll have to pay.");
  240. SendClientMessage(playerid, COLOR_WHITE,"If you pass, you will have the right to wear an uniform and call yourself a security officer.");
  241. SendClientMessage(playerid, COLOR_WHITE,"You need a driving license to do the test of course, and a passport to prevent illegal immigrants of this.");
  242. SendClientMessage(playerid, COLOR_WHITE,"Good luck with your test, we hope to see an officer like you in the future watching the streets!.");
  243. ClearChatbox(playerid, 3);
  244. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  245. }
  246. }
  247. if (IsPlayerInRangeOfPoint(playerid, 2, 358.2500,180.3491,1008.3828))
  248. {// freecop test
  249. GameTextForPlayer(playerid, "~w~Koristi ~g~/officertest ~w~kako bi pokupio test za casnika ~g~($5000)", 5000, 5);
  250. }
  251. else if (IsPlayerInRangeOfPoint(playerid, 2, 358.2368,165.3652,1008.3828))
  252. {// officer information
  253. GameTextForPlayer(playerid, "~w~Koristi ~g~/officercourse ~w~kako bi zapoceo test za casnika ~g~($2500)", 5000, 5);
  254. }
  255. else if (IsPlayerInRangeOfPoint(playerid, 2, 2029.5945,-1404.6426,17.2512))
  256. {// Hospital near speedway
  257. GameTextForPlayer(playerid, "~w~Koristi /healme za izlijecenje", 5000, 5);
  258. }
  259. else if (IsPlayerInRangeOfPoint(playerid, 2, 349.5560,161.6693,1019.9912))
  260. {// All Saints hospital
  261. GameTextForPlayer(playerid, "~w~Koristi /healme za izlijecenje", 5000, 5);
  262. }
  263. else if (IsPlayerInRangeOfPoint(playerid, 2, 523.6057,-1812.9794,6.5713) || IsPlayerInRangeOfPoint(playerid, 2, 1424.1729,-1317.9955,13.5547))
  264. {//Buyable Drugs for Drug Dealers
  265. GameTextForPlayer(playerid, "~w~Koristi /get drugs, da uzmes nesto ~r~Droge~y~~n~Skill Level utjece na cijenu", 5000, 3);
  266. }
  267. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,-792.9693,500.5572,1367.3672))
  268. {
  269. if(PlayerInfo[playerid][pJob] > 18) {}
  270. else { GameTextForPlayer(playerid, "~y~Konobar ~w~Mjesto za Oblacenje ~r~2 ~n~~y~Koristi /cookuniform list", 5000, 3); }
  271. }
  272. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,-779.3134,497.8989,1371.7490))
  273. {
  274. if(PlayerInfo[playerid][pJob] > 18) {}
  275. else { GameTextForPlayer(playerid, "~y~Konobar ~w~Mjesto za Oblacenje ~r~1 ~n~~y~Koristi /cookuniform list", 5000, 3); }
  276. }
  277. else if (IsPlayerInRangeOfPoint(playerid, 2, 1488.6949,-1721.7136,8.2067))
  278. {
  279. GameTextForPlayer(playerid, "~w~Crno ~r~Trziste", 5000, 3);
  280. }
  281. else if(IsPlayerInRangeOfPoint(playerid, 2, 358.2374,161.3243,1008.3828))
  282. {
  283. GameTextForPlayer(playerid, "~y~-City Hall- ~n~~n~~w~Koristi ~g~/taketest ~w~kako bi pokrenuo test za putovnicu. (Besplatno)", 5000, 3);
  284. }
  285. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1215.1304,-11.8431,1000.9219))
  286. {
  287. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Whore~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
  288. }
  289. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1793.02,-1296.56,13.44))
  290. {
  291. if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { GameTextForPlayer(playerid, "~w~Type ~r~/paper ~w~to create a newspaper",5000,3); }
  292. else if(PlayerInfo[playerid][pJob] == 15) { GameTextForPlayer(playerid, "~w~Type ~r~/papers ~w~to see all the made newspapers",5000, 3); }
  293. }
  294. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,213.8549,-230.5761,1.7786))
  295. {
  296. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Materials smuggler~n~~w~Type /join if you wish to become one", 5000, 3);
  297. }
  298. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,2072.5486,-1582.8029,13.4741))
  299. {
  300. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~~n~~w~Type /join if you wish to become one", 5000, 3);
  301. }
  302. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,-86.1251,2.6412,3.1172))
  303. {
  304. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drugs Farmer~y~~n~~w~Type /join if you wish to become one", 5000, 3);
  305. }
  306. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,2137.6624,-2282.3455,20.6719))
  307. {
  308. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Gun Maker~y~~n~~w~Type /join if you wish to become one", 5000, 3);
  309. }
  310. else if (IsPlayerInRangeOfPoint(playerid, 2,379.1396,-114.2661,1001.4922))
  311. {// Pizza Pickup
  312. if (PlayerInfo[playerid][pJob] != 17)
  313. {
  314. SendClientMessage(playerid, COLOR_GREY, "You are not a pizza stack worker");
  315. return 1;
  316. }
  317. if (sPizza[playerid] != 1)
  318. {
  319. SendClientMessage(playerid, COLOR_WHITE, "You have picked a cooked pizza, wait for orders");
  320. sPizza[playerid] = 1;
  321. }
  322. }
  323. else if (IsPlayerInRangeOfPoint(playerid, 2,1174.9100,-1365.7330,13.9876))
  324. {
  325. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SetTimerEx("elevator1", 1000, false, "i", playerid); }
  326. else { GameTextForPlayer(playerid, "~r~You can not use an elevator", 5000, 3); }
  327. }
  328. else if (IsPlayerInRangeOfPoint(playerid, 2,1174.9591,-1369.8761,23.9736))
  329. {
  330. if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SetTimerEx("elevator2", 1000, false, "i", playerid); }
  331. else { GameTextForPlayer(playerid, "~r~You can not use an elevator", 5000, 3); }
  332. }
  333. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1505.2416,-1694.5597,14.0469))
  334. {
  335. GameTextForPlayer(playerid, "~y~Mozete pronaci u novinama puno toga~n~pisi ~r~/novine ~y~da procitate ih", 5000, 3);
  336. }
  337. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,362.1231,173.6424,1008.3828))
  338. {
  339. GameTextForPlayer(playerid, "~w~For Legal Job list~n~ Type: ~r~/Legaljobs", 5000, 3);
  340. }
  341. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,1490.3195,1305.6976,1093.2964))
  342. {
  343. GameTextForPlayer(playerid, "~w~For Buyable License~n~ Type: ~r~/License", 5000, 3);
  344. }
  345. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,249.8574,67.8508,1003.6406))
  346. {
  347. GameTextForPlayer(playerid, "~w~Buyable Weapon Licenses~n~ Type: ~r~/buygunlic ~n~~w~[Costs ~g~20,500$~w~]", 5000, 3);
  348. }
  349. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,359.6820,207.0294,1008.3828))
  350. {
  351. GameTextForPlayer(playerid, "~w~Advertisment business~n~Owner: BBC Studio~n~Post your ~g~/ad~w~ here", 5000, 3);
  352. }
  353. else if (IsPlayerInRangeOfPoint(playerid, 3,-38.8664,56.3031,3.1172))
  354. {
  355. if(PlayerInfo[playerid][pJob] == 19)
  356. {
  357. format(string, sizeof(string), "~r~Drugs ammount: %d", drugsys[DrugAmmount]);
  358. GameTextForPlayer(playerid, string, 5000, 3);
  359. }
  360. else if(PlayerInfo[playerid][pJob] == 20)
  361. {
  362. format(string, sizeof(string), "~w~Drugs Farm~n~Farm Owner: Yakuza~n~Drugs ammount:~r~ %d~n~~w~You can /smuggledrugs here", drugsys[DrugAmmount]);
  363. GameTextForPlayer(playerid, string, 5000, 3);
  364. }
  365. else
  366. {
  367. GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
  368. }
  369. }
  370.  
  371. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,2022.1492,-1108.7837,26.2031))
  372. {
  373. GameTextForPlayer(playerid, "~g~Welcome,~n~~y~you can become a ~r~Drugs Smuggler~y~~n~~w~Type /join if you wish to become one", 5000, 3);
  374. }
  375. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 2,242.7591,66.4315,1003.6406))
  376. {
  377. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
  378. {
  379. GameTextForPlayer(playerid, "~g~Police Department Dizalo~n~~w~Koristi ~r~/pdup ~w~kako bi isao gore~n~Koristi ~r~/pddown ~w~za dolje", 5000, 3);
  380. }
  381. else
  382. {
  383. GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
  384. }
  385. }
  386. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,25.1811,1968.5167,17.6406))
  387. {
  388. GameTextForPlayer(playerid, "~w~Dobrodosli,~n~~w~Mozes letjeti u ~r~Los Santos. ~n~~w~Koristie ~y~/flyls ~w~ako zelis letjeti ovim avionom. ~g~$250", 5000, 3);
  389. }
  390. //-----------------------------------------------------------------------------------------------------------------------------------------------
  391. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,231.4331,140.4850,1003.0234))
  392. {
  393. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
  394. {
  395. GameTextForPlayer(playerid, "~g~FBI Headquarters elevator~n~~w~Type ~r~/hqroof ~w~to go up~n~Type ~r~/hqdown ~w~to go down", 5000, 3);
  396. }
  397. else
  398. {
  399. GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
  400. }
  401. }
  402.  
  403. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,1510.6852,-1458.0654,9.5000))
  404. {
  405. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
  406. {
  407. GameTextForPlayer(playerid, "~g~FBI Headquarters elevator~n~~w~Type ~r~/hqin ~w~to go inside~n~Type ~r~/hqroof ~w~to go to the roofs", 5000, 3);
  408. }
  409. else
  410. {
  411. GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
  412. }
  413. }
  414.  
  415. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1,1494.3761,-1467.0068,40.5234))
  416. {
  417. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] >= 5 && PlayerInfo[playerid][pAdminDuty] == 1)
  418. {
  419. GameTextForPlayer(playerid, "~g~FBI Headquarters elevator~n~~w~Type ~r~/hqin ~w~to go inside~n~Type ~r~/hqdown ~w~to go to the garage", 5000, 3);
  420. }
  421. else
  422. {
  423. GameTextForPlayer(playerid, "~r~Staff only!", 5000, 3);
  424. }
  425. }
  426. //-----------------------------------------------------------------------------------------------------------------------------------------------
  427. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,255.4480,85.8236,1002.4453))
  428. {
  429. if(IsACop(playerid))
  430. {
  431. GameTextForPlayer(playerid, "~b~Los Santos Police Department~n~~w~Type ~r~/arrest ~w~To arrest your Suspect.", 5000, 3);
  432. }
  433. else
  434. {
  435. GameTextForPlayer(playerid,"~r~Nisi policajac, What are you Doing Here?!",4000,4);
  436. }
  437. }
  438. //-----------------------------------------------------------------------------------------------------------------------------------------------
  439. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,201.0256,168.3393,1003.0234))
  440. {
  441. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
  442. {
  443. GameTextForPlayer(playerid, "~b~Federal Bureau of ivnestigation~n~~w~Type ~r~/farrest ~w~To arrest your Suspect.", 5000, 3);
  444. }
  445. else
  446. {
  447. GameTextForPlayer(playerid,"~r~You are not an FBI, What are you Doing Here?!",4000,4);
  448. }
  449. }
  450. //-----------------------------------------------------------------------------------------------------------------------------------------------
  451. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3,222.2311,121.3434,999.0239))
  452. {
  453. if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
  454. {
  455. GameTextForPlayer(playerid, "~b~Los Santos Army~n~~w~Type ~r~/sarrest ~w~To arrest your Suspect.", 5000, 3);
  456. }
  457. else
  458. {
  459. GameTextForPlayer(playerid,"~r~You are not a Soldier, What are you Doing Here?!",4000,4);
  460. }
  461. }
  462. //-----------------------------------------------------------------------------------------------------------------------------------------------
  463. else if (GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,2073.2979,-1831.1228,13.5469) || GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,1024.9756,-1030.7930,32.0257) || GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,488.3819,-1733.0563,11.1752) || GetPlayerState(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3,719.8940,-464.8272,16.3359))
  464. {
  465. format(string, sizeof(string), "~y~Pay ~r~& ~g~Spray~w~~n~Vlasnik : %s~n~Naknada za ulaz : ~g~$%d ~w~~n~za ulazak Koristi /enter",SBizzInfo[5][sbOwner],SBizzInfo[5][sbEntranceCost]);
  466. GameTextForPlayer(playerid, string, 5000, 3);
  467. }
  468. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1.5, 248.4994,-33.1366,1.5781))
  469. {
  470. if(PlayerInfo[playerid][pJob] == 22)
  471. {
  472. GameTextForPlayer(playerid, "~w~Materials factory~n~You can ~r~/smugglemats ~w~here", 5000, 3);
  473. }
  474. else
  475. {
  476. GameTextForPlayer(playerid, "~r~Staff only !", 5000, 3);
  477. }
  478. }
  479. else if (GetPlayerState(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 1.5, 2230.3579,-2286.2107,14.3751))
  480. {
  481. if(PlayerInfo[playerid][pJob] == 22)
  482. {
  483. format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys[MatsAmmount]);
  484. GameTextForPlayer(playerid, string, 5000, 3);
  485. }
  486. else if(PlayerInfo[playerid][pJob] == 23)
  487. {
  488. format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d ~n~~w~You can ~g~/buymats ~w~here", matssys[MatsAmmount]);
  489. GameTextForPlayer(playerid, string, 5000, 3);
  490. }
  491. else
  492. {
  493. GameTextForPlayer(playerid, "~r~Staff only !", 5000, 3);
  494. }
  495. }
  496. else if(IsPlayerInRangeOfPoint(playerid, 2,1073.0619,-344.5148,73.9922))
  497. {
  498. if(OrderReady[playerid] > 0)
  499. {
  500. switch (OrderReady[playerid])
  501. {
  502. case 1:
  503. {
  504. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 4, 1);
  505. SafeGivePlayerMoney(playerid, - 5000);
  506. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  507. }
  508. case 2:
  509. {
  510. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 31, 500); SafeGivePlayerWeapon(playerid, 4, 1);
  511. SafeGivePlayerMoney(playerid, - 6000);
  512. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  513. }
  514. case 3:
  515. {
  516. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 30, 500); SafeGivePlayerWeapon(playerid, 4, 1);
  517. SafeGivePlayerMoney(playerid, - 6000);
  518. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  519. }
  520. case 4:
  521. {
  522. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 31, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
  523. SafeGivePlayerMoney(playerid, - 8000);
  524. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  525. }
  526. case 5:
  527. {
  528. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 30, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
  529. SafeGivePlayerMoney(playerid, - 8000);
  530. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  531. }
  532. case 6:
  533. {
  534. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 31, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
  535. SafeGivePlayerMoney(playerid, - 8500);
  536. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  537. }
  538. case 7:
  539. {
  540. SafeGivePlayerWeapon(playerid, 24, 50); SafeGivePlayerWeapon(playerid, 29, 500); SafeGivePlayerWeapon(playerid, 25, 50); SafeGivePlayerWeapon(playerid, 30, 500); SafeGivePlayerWeapon(playerid, 4, 1); SafeGivePlayerWeapon(playerid, 34, 20);
  541. SafeGivePlayerMoney(playerid, - 8500);
  542. SendClientMessage(playerid, COLOR_WHITE, "* You picked up your Ordered Package.");
  543. }
  544. }
  545. OrderReady[playerid] = 0;
  546. }
  547. }
  548. }
  549. }
  550. else if ((newkeys & KEY_SECONDARY_ATTACK))
  551. {
  552. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  553. {
  554. if(gEngine[playerid] == 0 && engineOn[newcar] == 0)
  555. {
  556. SafeRemovePlayerFromVehicle(playerid);
  557. TogglePlayerControllable(playerid, 1);
  558. return 1;
  559. }
  560. else if(NoFuel[playerid] == 1)
  561. {
  562. TogglePlayerControllable(playerid, 1);
  563. SafeRemovePlayerFromVehicle(playerid);
  564. NoFuel[playerid] = 0;
  565. return 1;
  566. }
  567. }
  568. if(!IsPlayerInAnyVehicle(playerid))
  569. {
  570. if(GetPlayerSpecialAction(playerid) == 20)
  571. {
  572. PlayerDrankBeer[playerid] = 0;
  573. }
  574. else if(GetPlayerSpecialAction(playerid) == 22)
  575. {
  576. PlayerDrankWine[playerid] = 0;
  577. }
  578. else if(GetPlayerSpecialAction(playerid) == 23)
  579. {
  580. PlayerDrankSprunk[playerid] = 0;
  581. }
  582. else if(GetPlayerSpecialAction(playerid) == 21)
  583. {
  584. PlayerSmokedCig[playerid] = 0;
  585. IsSmoking[playerid] = 0;
  586. GetPlayerName(playerid, sendername, sizeof(sendername));
  587. if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s uzima cigaretu iz usta i baca ju na pod.", sendername); }
  588. else { format(string, sizeof(string), "* %s uzima cigaretu iz usta i baca ju na pod.", sendername); }
  589. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  590. if(UsingSmokeAnim[playerid] == 1)
  591. {
  592. ClearAnimations(playerid);
  593. }
  594. }
  595. }
  596. if(IsAtCandySprunk(playerid))
  597. {
  598. if(TookSprunk[playerid] == 0)
  599. {
  600. new Float:health;
  601. GetPlayerHealth(playerid, health);
  602. if(health != 0)
  603. {
  604. SetRealMoney(playerid, (ScriptMoney[playerid] - 25));
  605. SendClientMessage(playerid, COLOR_GREY, "* Platio si 25$ automatu");
  606. TookSprunk[playerid] = 1;
  607. SetTimerEx("SetHP",3750,false, "i", playerid);
  608. }
  609. }
  610. }
  611. if (OfficerCourseStep[playerid] != 255)
  612. {
  613. if(OfficerCourseStep[playerid] == 1)
  614. {
  615. OfficerCourseStep[playerid] = 2;
  616. ClearChatbox(playerid, 10);
  617. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Brief Explanation of the Job ---------------------------------");
  618. SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, you will have rights to wear an Uniform and carry Statal Issued Weapons.");
  619. SendClientMessage(playerid, COLOR_WHITE,"Abusing your weapons (Using them to DM) will result in a Suspension from Cop Duty.");
  620. SendClientMessage(playerid, COLOR_WHITE,"If you are suspended from cop duty, you wont be able to use your Security Guards Rights anymore till unbaned.");
  621. SendClientMessage(playerid, COLOR_WHITE,"As Officer, you will have to arrest all the Suspects (Orange), But Be careful! Do not Metagame!");
  622. SendClientMessage(playerid, COLOR_WHITE,"You will be able to open the doors of the LSPD, drive their cars and Use some commands such /radio");
  623. ClearChatbox(playerid, 3);
  624. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  625. }
  626. else if(OfficerCourseStep[playerid] == 2)
  627. {
  628. OfficerCourseStep[playerid] = 3;
  629. ClearChatbox(playerid, 10);
  630. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to do as a Security Guard ---------------------------------");
  631. SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job will be to take minor suspects into Custody with your Weapons (If Needed).");
  632. SendClientMessage(playerid, COLOR_WHITE,"You will be allowed to issue tickets, which will be your mayor job on the position apart of arresting.");
  633. SendClientMessage(playerid, COLOR_WHITE,"You can get hired as a security guard to secure places, BUT this requieres an officer approval first.");
  634. SendClientMessage(playerid, COLOR_WHITE,"You must bring Suspects (Oranges) down to the jail, Once they Surrender (Dark Orange) You may not attack them.");
  635. SendClientMessage(playerid, COLOR_WHITE,"You must use your RADIO to comunicate with the other officers if you are in trouble, always.");
  636. ClearChatbox(playerid, 3);
  637. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  638. }
  639. else if(OfficerCourseStep[playerid] == 3)
  640. {
  641. OfficerCourseStep[playerid] = 4;
  642. ClearChatbox(playerid, 10);
  643. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What to NOT do as a Security Guard ---------------------------------");
  644. SendClientMessage(playerid, COLOR_WHITE,"As Security Guard, Your job wont be to take bribes and help criminals to fight the police or civilians.");
  645. SendClientMessage(playerid, COLOR_WHITE,"You are not allowed to issue tickets for no random reason nor abuse your /suspect Command for no reason.");
  646. SendClientMessage(playerid, COLOR_WHITE,"You may not take the cars and make a ferris wheel with them or leave then abandoned in the middle of nowhere.");
  647. SendClientMessage(playerid, COLOR_WHITE,"You may not use your weapons and cars to Deathmatch and carkill with them, that can lead to a server ban.");
  648. SendClientMessage(playerid, COLOR_WHITE,"You may not act like rambo and kill any suspect that you see on your TAB list, This is a roleplay server remember.");
  649. ClearChatbox(playerid, 3);
  650. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  651. }
  652. else if(OfficerCourseStep[playerid] == 4)
  653. {
  654. OfficerCourseStep[playerid] = 5;
  655. ClearChatbox(playerid, 10);
  656. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Corrupt Cop ---------------------------------");
  657. SendClientMessage(playerid, COLOR_WHITE,"You are considered corrupt if you break any server rule or law while carrying your uniform and are on duty.");
  658. SendClientMessage(playerid, COLOR_WHITE,"As a corrupt freecop, you can be hunted by the real police, the FBI or the Army if its really serious.");
  659. SendClientMessage(playerid, COLOR_WHITE,"If the police can't catch you, the administrators or the higher LEO will proceed to suspend you from cop duty.");
  660. SendClientMessage(playerid, COLOR_WHITE,"Repeatdely abuse of your weaponry / rights will lead to a server ban for Script Abuse, Deathmatching and Provoking.");
  661. SendClientMessage(playerid, COLOR_WHITE,"You can get Suspended from Active duty for more than a month, so be careful with your decissions, always.");
  662. ClearChatbox(playerid, 3);
  663. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  664. }
  665. else if(OfficerCourseStep[playerid] == 5)
  666. {
  667. OfficerCourseStep[playerid] = 6;
  668. ClearChatbox(playerid, 10);
  669. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- What can happen as a Good Cop ---------------------------------");
  670. SendClientMessage(playerid, COLOR_WHITE,"You are considered a good cop if you don't break any law or server rule while on duty and you follow the protocol.");
  671. SendClientMessage(playerid, COLOR_WHITE,"As a good cop, your chances of being invited to the LSPD or getting accepted get increased a lot, by showing experience.");
  672. SendClientMessage(playerid, COLOR_WHITE,"As a non abusive cop, administrators will gain a good look of you and will start to trust you, even to make you a helper.");
  673. SendClientMessage(playerid, COLOR_WHITE,"If owners sees that you are good enough, they can even make you a platinium regular or master helper, or even a moderator.");
  674. SendClientMessage(playerid, COLOR_WHITE,"All these things can happen, so be careful with your decissions and take the correct ones, always!.");
  675. ClearChatbox(playerid, 3);
  676. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  677. }
  678. else if(OfficerCourseStep[playerid] == 6)
  679. {
  680. OfficerCourseStep[playerid] = 7;
  681. ClearChatbox(playerid, 10);
  682. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to arrest a Suspect ---------------------------------");
  683. SendClientMessage(playerid, COLOR_WHITE,"First ask him to surrender, if he doesn't use the non lethal force until he surrenders, if he doesn't proceed to kill him.");
  684. SendClientMessage(playerid, COLOR_WHITE,"Once he surrenders, he will become in a darker orange name, so don't let them fool you, look at the radio and their names.");
  685. SendClientMessage(playerid, COLOR_WHITE,"Read his rights (/mir) And take him to the LSPD, if he tries to escape kill or report him to the administration, your choice.");
  686. SendClientMessage(playerid, COLOR_WHITE,"Once you are done with the processing, proceed to jail him depending the severity of his crime, 1-5 minutes, always be fair.");
  687. SendClientMessage(playerid, COLOR_WHITE,"If he asks for a lawyer, you must stay until the lawyer arrives to the PD and start the discussion about the crime.");
  688. ClearChatbox(playerid, 3);
  689. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  690. }
  691. else if(OfficerCourseStep[playerid] == 7)
  692. {
  693. OfficerCourseStep[playerid] = 8;
  694. ClearChatbox(playerid, 10);
  695. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to Take down a suspect ---------------------------------");
  696. SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to use the force on you, by shooting you, you are allowed to shoot back without warning.");
  697. SendClientMessage(playerid, COLOR_WHITE,"Due the SA:MP Lag & Desync, always shoot to where he is heading, if he has low ping, depends on the ping.");
  698. SendClientMessage(playerid, COLOR_WHITE,"If there are more than two suspects and you are alone, RETREAT and call for backup, act like rambo if needed");
  699. SendClientMessage(playerid, COLOR_WHITE,"Do not waste your bullets on useless shoots, only fire if you are sure that you will give the suspect.");
  700. SendClientMessage(playerid, COLOR_WHITE,"To prevent them of escaping you can destroy the tires of their cars or shoot them thru the front glass.");
  701. ClearChatbox(playerid, 3);
  702. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  703. }
  704. else if(OfficerCourseStep[playerid] == 8)
  705. {
  706. OfficerCourseStep[playerid] = 9;
  707. ClearChatbox(playerid, 10);
  708. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How to rush to a place ---------------------------------");
  709. SendClientMessage(playerid, COLOR_WHITE,"If the suspect decides to hide on an interior, call for backup, you don't know if he is going to shoot you when you get in or not.");
  710. SendClientMessage(playerid, COLOR_WHITE,"If backups arrives, always follow your superiors' orders, if they tell you to stay outside, stay there and do not act like rambo.");
  711. SendClientMessage(playerid, COLOR_WHITE,"If they tell you to rush with them, take their weapons and NEVER get away from them, do not act like rambo and the team.");
  712. SendClientMessage(playerid, COLOR_WHITE,"Before entering, its recommended to pop the suspect(s)'s cars tires, get in the car and tell someone else to shoot the tires.");
  713. SendClientMessage(playerid, COLOR_WHITE,"After all if they try to escape, use your weapon, shoot at them until they decide to surrender, if they don't, kill them");
  714. ClearChatbox(playerid, 3);
  715. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  716. }
  717. else if(OfficerCourseStep[playerid] == 9)
  718. {
  719. OfficerCourseStep[playerid] = 10;
  720. ClearChatbox(playerid, 10);
  721. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- Some tips to be a great cop ---------------------------------");
  722. SendClientMessage(playerid, COLOR_WHITE,"Never give too high tickets, but not too low ones, if you give too much, people will hate, else they will think you are a fool.");
  723. SendClientMessage(playerid, COLOR_WHITE,"In a chase, use the tactic named 'lag pit', drive a bit ahead the suspect and try to ram them out of the road so you can slow them.");
  724. SendClientMessage(playerid, COLOR_WHITE,"If you are in an helicopter, always report yourself to the ATC and never Fly low, in case you are in low HP and kill everyone.");
  725. SendClientMessage(playerid, COLOR_WHITE,"Try to keep your Humour Sense and your Humour to the maximun, people will love that you threat them well and make a joke or two.");
  726. SendClientMessage(playerid, COLOR_WHITE,"Never do jokes such 'Pullover this is a cavity Search' or 'You're under arrest for being black', people hates such jokes.");
  727. ClearChatbox(playerid, 3);
  728. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  729. }
  730. else if(OfficerCourseStep[playerid] == 10)
  731. {
  732. OfficerCourseStep[playerid] = 11;
  733. ClearChatbox(playerid, 10);
  734. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- How people will hate you ---------------------------------");
  735. SendClientMessage(playerid, COLOR_WHITE,"People will hate you if you always break the laws while on duty, such shooting to the air or wrecklessing driving.");
  736. SendClientMessage(playerid, COLOR_WHITE,"If you give someone a ticket for speeding, then you leave speeding, people will hate because you will abuse your sirens.");
  737. SendClientMessage(playerid, COLOR_WHITE,"Never exceed the ticket price, or the jail time, if someone pees on the plaza, doesn't means that you can give him 5 mins.");
  738. SendClientMessage(playerid, COLOR_WHITE,"Never abuse the suspect in any manner, sexually or phsycally, do not try to rape or hit them after they gave up, its DM...");
  739. SendClientMessage(playerid, COLOR_WHITE,"Doing jokes as suspect reasons or pulling someone for no reason can be annoying, people wont like you if you do that.");
  740. ClearChatbox(playerid, 3);
  741. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  742. }
  743. else if(OfficerCourseStep[playerid] == 11)
  744. {
  745. OfficerCourseStep[playerid] = 12;
  746. ClearChatbox(playerid, 10);
  747. SendClientMessage(playerid, COLOR_GREEN,"--------------------------------- The End, Good Job! ---------------------------------");
  748. SendClientMessage(playerid, COLOR_WHITE,"Finally we arrived to the end, this means that if you payed enough atention you're ready for the test.");
  749. SendClientMessage(playerid, COLOR_WHITE,"The test for having a cop license will cost you 5000$, failed or passed you'll have to pay.");
  750. SendClientMessage(playerid, COLOR_WHITE,"If you pass, you will have the right to wear an uniform and call yourself a security officer.");
  751. SendClientMessage(playerid, COLOR_WHITE,"You need a driving license to do the test of course, and a passport to prevent illegal immigrants of this.");
  752. SendClientMessage(playerid, COLOR_WHITE,"Good luck with your test, we hope to see an officer like you in the future watching the streets!.");
  753. ClearChatbox(playerid, 3);
  754. SendClientMessage(playerid, COLOR_WHITE,"Press your defined VEHICLE ENTERING KEY to Continue, KEY SPRINT to return to the last one.");
  755. }
  756. }
  757. if(AFK[playerid] == 1)
  758. {
  759. afkadmins --;
  760. AFK[playerid] = 0;
  761. TogglePlayerControllable(playerid, 1);
  762. TextDrawHideForPlayer(playerid, Textdraw5);
  763. TextDrawHideForPlayer(playerid, Textdraw50);
  764. TextDrawShowForPlayer(playerid, Textdraw44);
  765. TextDrawShowForPlayer(playerid, Textdraw45);
  766. TextDrawShowForPlayer(playerid, Textdraw55);
  767. TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
  768. TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
  769. if(PlayerInfo[playerid][pWatch] == 1)
  770. {
  771. TextDrawShowForPlayer(playerid, Textdraw56);
  772. TextDrawShowForPlayer(playerid, Textdraw57);
  773. TextDrawShowForPlayer(playerid, Textdraw58);
  774. }
  775. SafeSetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
  776. }
  777. if(IsPlayerInRangeOfPoint(playerid, 1, -1423.8018,934.8103,1036.4380))
  778. {//DD Exit By Vaka
  779. GameTextForPlayer(playerid, "~w~Blackfield, ~y~Las Venturas", 5000, 1);
  780. SafeSetPlayerInterior(playerid, 0);
  781. SafeSetPlayerPos(playerid,1090.9735,1606.6628,12.5469);
  782. SendClientMessage(playerid, TEAM_VAGOS_COLOR, "Nadamo se da cete se zabaviti na Stadionu.");
  783. }
  784. // NOVA SCRIPTA UnderGround Racers TELEPORT NA HELIDROM
  785. if(IsPlayerInRangeOfPoint(playerid, 1, 689.9,-1272,13.5))
  786. {
  787. PlayerInfo[playerid][pInteriorNr] = 1;
  788. GameTextForPlayer(playerid, "~w~UnderGround Racers HELIDROM", 3000, 1);
  789. SafeSetPlayerInterior(playerid, 0);
  790. SafeSetPlayerPos(playerid,756,-1280,23.7);
  791. }
  792. // NOVA SCRIPTA UnderGround Racers TELEPORT SA HELIDROMA
  793. if(IsPlayerInRangeOfPoint(playerid, 1, 756,-1276,23.7))
  794. {
  795. PlayerInfo[playerid][pInteriorNr] = 1;
  796. GameTextForPlayer(playerid, "~w~UnderGround Racers DVORISTE", 3000, 1);
  797. SafeSetPlayerInterior(playerid, 0);
  798. SafeSetPlayerPos(playerid,689.9,-1280,13.5);
  799. }
  800.  
  801. // nova scripta sprunk aparati
  802. if(IsPlayerInRangeOfPoint(playerid, 1, 1536.90002441,-1642.19995117,13.60000038) || IsPlayerInRangeOfPoint(playerid, 1, 1198.69995117,-1273.30004883,13.60000038) || IsPlayerInRangeOfPoint(playerid, 1, 1464.00000000,-1046.59997559,23.89999962) || IsPlayerInRangeOfPoint(playerid, 1, 1083.99462891,-1804.60876465,13.71529675) || IsPlayerInRangeOfPoint(playerid, 1,334.66,-1772.95,5.16) || IsPlayerInRangeOfPoint(playerid, 1,2187.94,-1132.10,24.60) || IsPlayerInRangeOfPoint(playerid, 3,1280,-1538,13.6))
  803. {
  804. if(GetPlayerMoney(playerid) < 26)
  805. {
  806. SendClientMessage(playerid, COLOR_GREY, "** Nemas dovoljno novca sa sobom !");
  807. return 1;
  808. }
  809.  
  810. SafeGivePlayerMoney(playerid, -25);
  811. // SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  812. SetPlayerHealth(playerid, 100);
  813. SendClientMessage(playerid, COLOR_GREY, "** Kupio si SPRUNK, kostalo te $25 !");
  814. SendClientMessage(playerid, COLOR_GREY, "** Sada ti se zdravlje poboljsalo !");
  815. return 1 ;
  816. }
  817.  
  818. if(IsPlayerInRangeOfPoint(playerid, 1,1462.1191,-1013.2958,26.8438))
  819. {//Bank enter.
  820. GameTextForPlayer(playerid, "~g~Banka", 5000, 1);
  821. SafeSetPlayerInterior(playerid, 0);
  822. SafeSetPlayerPos(playerid,2306.4106,-13.9335,26.7422);
  823. }
  824. if(IsPlayerInRangeOfPoint(playerid, 1, 2305.3479,-16.1179,26.7496))
  825. {//Bank exit.
  826. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  827. SafeSetPlayerInterior(playerid, 0);
  828. SafeSetPlayerPos(playerid,1457.3992,-1012.5910,26.8438);
  829. }
  830. //============================================================================//
  831. if(IsPlayerInRangeOfPoint(playerid, 1,833.269775,10.588416,1004.179687))
  832. {//Kladionica Ulaz.
  833. GameTextForPlayer(playerid, "~g~Kladionica", 5000, 1);
  834. SafeSetPlayerInterior(playerid, 0);
  835. SafeSetPlayerPos(playerid,1631.7783,-1172.1437,24.0781);
  836. }
  837. if(IsPlayerInRangeOfPoint(playerid, 1, 1631.7783,-1172.1437,24.0781))
  838. {//Kladionica Izlaz.
  839. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  840. SafeSetPlayerInterior(playerid, 0);
  841. SafeSetPlayerPos(playerid,833.269775,10.588416,1004.179687);
  842. }
  843. //===========================================================================//
  844. // NOVA SCRIPTA FBI TELEPORT NA KROV
  845. if(IsPlayerInRangeOfPoint(playerid, 1, 1494.6265869141,-1457.6307373047,40.5234375))
  846. {
  847. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
  848. {
  849. PlayerInfo[playerid][pInteriorNr] = 1;
  850. GameTextForPlayer(playerid, "~w~FBI krov", 5000, 1);
  851. SafeSetPlayerInterior(playerid, 0);
  852. SafeSetPlayerPos(playerid,1496.5075683594,-1478.7570800781,63.859375);
  853. return 1;
  854. }
  855. SendClientMessage(playerid, COLOR_BLUE,"Nisi clan FBI !!!!");
  856. }
  857.  
  858. // NOVA SCRIPTA FBI TELEPORT SA KROVA
  859. if(IsPlayerInRangeOfPoint(playerid, 1, 1496.5075683594,-1478.7570800781,63.859375))
  860. {
  861. PlayerInfo[playerid][pInteriorNr] = 1;
  862. GameTextForPlayer(playerid, "~w~FBI krov", 5000, 1);
  863. SafeSetPlayerInterior(playerid, 0);
  864. SafeSetPlayerPos(playerid,1494.6265869141,-1457.6307373047,40.5234375);
  865. }
  866. // NOVA SCRIPTA FBI TELEPORT U VOZNI PARK
  867. if(IsPlayerInRangeOfPoint(playerid, 1, 1510,-1462,9.5))
  868. {
  869. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
  870.  
  871. {
  872. PlayerInfo[playerid][pInteriorNr] = 1;
  873. GameTextForPlayer(playerid, "~w~FBI VOZNI PARK", 5000, 1);
  874. SafeSetPlayerInterior(playerid, 0);
  875. SafeSetPlayerPos(playerid,1520,-1503,13.6);
  876. return 1;
  877. }
  878. SendClientMessage(playerid, COLOR_BLUE,"Nisi clan FBI !!!!");
  879. }
  880.  
  881. // NOVA SCRIPTA FBI TELEPORT IZ VOZNog PARKa
  882. if(IsPlayerInRangeOfPoint(playerid, 1, 1520,-1503,13.6))
  883. { // 1520,-1503,13.6
  884. if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
  885.  
  886. {
  887. PlayerInfo[playerid][pInteriorNr] = 1;
  888. GameTextForPlayer(playerid, "~w~FBI BAZA", 5000, 1);
  889. SafeSetPlayerInterior(playerid, 0);
  890. SafeSetPlayerPos(playerid,1510,-1462,9.5);
  891. return 1;
  892. }
  893. SendClientMessage(playerid, COLOR_BLUE,"Nisi clan FBI !!!!");
  894. }
  895. // NOVA SCRIPTA VLADA TELEPORT NA HELIDROM
  896. if(IsPlayerInRangeOfPoint(playerid, 1, 1452,-1822,44.7))
  897. {
  898. PlayerInfo[playerid][pInteriorNr] = 1;
  899. GameTextForPlayer(playerid, "~w~VLADA HELIDROM", 3000, 1);
  900. SafeSetPlayerInterior(playerid, 0);
  901. SafeSetPlayerPos(playerid,1457,-1817,49);
  902. }
  903. // NOVA SCRIPTA VLADA TELEPORT SA HELIDROMA
  904. if(IsPlayerInRangeOfPoint(playerid, 1, 1447,-1819,48.8))
  905. {
  906. PlayerInfo[playerid][pInteriorNr] = 1;
  907. GameTextForPlayer(playerid, "~w~VLADA TERASA", 3000, 1);
  908. SafeSetPlayerInterior(playerid, 0);
  909. SafeSetPlayerPos(playerid,1458,-1825,45);
  910. }
  911.  
  912. // AddStaticPickup(1240, 1, -1023.1,-981.3,131.23,0); // heal
  913. // AddStaticPickup(348, 1, -1032.6,-968.6,131.23,0); // gun
  914. // NOVA SCRIPTA scarface HEAL
  915. if(IsPlayerInRangeOfPoint(playerid, 1, -1044.1,-968.6,131.23))
  916. {
  917. PlayerInfo[playerid][pInteriorNr] = 1;
  918. if(PlayerInfo[playerid][pPhousekey] == 499)
  919. {
  920. SafeSetPlayerArmour(playerid, 50);
  921. SetPlayerHealth(playerid, 100);
  922. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  923. }
  924. else
  925. {
  926. SendClientMessage(playerid, COLOR_GREY, " Nisi clan SCARFACE !!!");
  927. }
  928. }
  929. // NOVA SCRIPTA scarface ORUZJE
  930. if(IsPlayerInRangeOfPoint(playerid, 1, -1032.6,-968.6,131.23))
  931. {
  932. PlayerInfo[playerid][pInteriorNr] = 1;
  933. if(PlayerInfo[playerid][pPhousekey] == 499)
  934. {
  935. ResetPlayerWeapons(playerid);
  936. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  937. SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
  938. SafeGivePlayerWeapon(playerid, 29, 60); // mp5
  939. SafeGivePlayerWeapon(playerid, 34, 20); // sniper
  940.  
  941. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  942. }
  943. else
  944. {
  945. SendClientMessage(playerid, COLOR_GREY, " Nisi clan SCARFACE !!!");
  946. }
  947. }
  948.  
  949.  
  950.  
  951.  
  952. // NOVA SCRIPTA LCN HEAL
  953. if(IsPlayerInRangeOfPoint(playerid, 1, 1123,-2034,69.5))
  954. {
  955. PlayerInfo[playerid][pInteriorNr] = 1;
  956. if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
  957. {
  958. SafeSetPlayerArmour(playerid, 50);
  959. SetPlayerHealth(playerid, 100);
  960. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  961. }
  962. else
  963. {
  964. SendClientMessage(playerid, COLOR_GREY, " Nisi clan LCN organizacije !!!");
  965. }
  966. }
  967. // NOVA SCRIPTA LCN ORUZJE
  968. if(IsPlayerInRangeOfPoint(playerid, 1, 1122.6,-2040,69.9))
  969. {
  970. PlayerInfo[playerid][pInteriorNr] = 1;
  971. if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
  972. {
  973. ResetPlayerWeapons(playerid);
  974. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  975. SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
  976. SafeGivePlayerWeapon(playerid, 29, 60); // mp5
  977. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  978. }
  979. else
  980. {
  981. SendClientMessage(playerid, COLOR_GREY, " Nisi clan LCN organizacije !!!");
  982. }
  983. }
  984.  
  985. // NOVA SCRIPTA TIM HEAL
  986. if(IsPlayerInRangeOfPoint(playerid, 1, 689.4,-470.6,16.5))
  987. {
  988. PlayerInfo[playerid][pInteriorNr] = 1;
  989. if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
  990. {
  991. SafeSetPlayerArmour(playerid, 50);
  992. SetPlayerHealth(playerid, 100);
  993. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  994. }
  995. else
  996. {
  997. SendClientMessage(playerid, COLOR_GREY, " Nisi clan TIM-a !!!");
  998. }
  999. }
  1000. // NOVA SCRIPTA TIM ORUZJE
  1001. if(IsPlayerInRangeOfPoint(playerid, 1, 689.4,-469,16.5))
  1002. {
  1003. PlayerInfo[playerid][pInteriorNr] = 1;
  1004. if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
  1005. {
  1006. ResetPlayerWeapons(playerid);
  1007. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  1008. SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
  1009. SafeGivePlayerWeapon(playerid, 29, 60); // mp5
  1010. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  1011. }
  1012. else
  1013. {
  1014. SendClientMessage(playerid, COLOR_GREY, " Nisi clan GSG-a !!!");
  1015. }
  1016. }
  1017. // ----------------------------------============================================================================================================
  1018. // NOVA SCRIPTA YAKUZA HEAL
  1019. if(IsPlayerInRangeOfPoint(playerid, 1, 1260,-775,96))
  1020. {
  1021. PlayerInfo[playerid][pInteriorNr] = 1;
  1022. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
  1023. {
  1024. SafeSetPlayerArmour(playerid, 50);
  1025. SetPlayerHealth(playerid, 100);
  1026. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  1027. }
  1028. else
  1029. {
  1030. SendClientMessage(playerid, COLOR_GREY, " Nisi clan YAKUZA organizacije !!!");
  1031. }
  1032. }
  1033. // NOVA SCRIPTA YAKUZA ORUZJE
  1034. if(IsPlayerInRangeOfPoint(playerid, 1, 1260,-772.5,96))
  1035. {
  1036. PlayerInfo[playerid][pInteriorNr] = 1;
  1037. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
  1038. {
  1039. ResetPlayerWeapons(playerid);
  1040. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  1041. SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
  1042. SafeGivePlayerWeapon(playerid, 29, 60); // mp5
  1043. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  1044. }
  1045. else
  1046. {
  1047. SendClientMessage(playerid, COLOR_GREY, " Nisi clan YAKUZA organizacije !!!");
  1048. }
  1049. }
  1050. // NOVA SCRIPTA Under Ground Racers HEAL
  1051. if(IsPlayerInRangeOfPoint(playerid, 1, 691.7,-1273.8,13.5))
  1052. {
  1053. PlayerInfo[playerid][pInteriorNr] = 1;
  1054. if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
  1055. {
  1056. SafeSetPlayerArmour(playerid, 50);
  1057. SetPlayerHealth(playerid, 100);
  1058. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  1059. }
  1060. else
  1061. {
  1062. SendClientMessage(playerid, COLOR_GREY, " Nisi clan Under Ground Racers-a !!!");
  1063. }
  1064. }
  1065. // NOVA SCRIPTA Under Ground Racers ORUZJE
  1066. if(IsPlayerInRangeOfPoint(playerid, 1, 691.7,-1278.3,13.5))
  1067. {
  1068. PlayerInfo[playerid][pInteriorNr] = 1;
  1069. if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
  1070. {
  1071. ResetPlayerWeapons(playerid);
  1072. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  1073. SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
  1074. SafeGivePlayerWeapon(playerid, 29, 60); // mp5
  1075. SafeGivePlayerWeapon(playerid, 5, 1); // BEJZBOL BAT
  1076. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  1077. }
  1078. else
  1079. {
  1080. SendClientMessage(playerid, COLOR_GREY, " Nisi clan Under Ground Racers-a!!!");
  1081. }
  1082. }
  1083. // NOVA SCRIPTA Bloods HEAL
  1084. if(IsPlayerInRangeOfPoint(playerid, 1, 161,-1749,6.8))
  1085. {
  1086. PlayerInfo[playerid][pInteriorNr] = 1;
  1087. if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
  1088. {
  1089. SafeSetPlayerArmour(playerid, 50);
  1090. SetPlayerHealth(playerid, 100);
  1091. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  1092. }
  1093. else
  1094. {
  1095. SendClientMessage(playerid, COLOR_GREY, " Nisi clan Bloods Family-a!");
  1096. }
  1097. }
  1098. // NOVA SCRIPTA Bloods ORUZJE
  1099. if(IsPlayerInRangeOfPoint(playerid, 1, 163,-1749,6.8))
  1100. {
  1101. PlayerInfo[playerid][pInteriorNr] = 1;
  1102. if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
  1103. {
  1104. ResetPlayerWeapons(playerid);
  1105. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  1106. SafeGivePlayerWeapon(playerid, 25, 30); // shotgun
  1107. SafeGivePlayerWeapon(playerid, 29, 60); // mp5
  1108.  
  1109. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  1110. }
  1111. else
  1112. {
  1113. SendClientMessage(playerid, COLOR_GREY, " Nisi clan Bloods Family-a!");
  1114. }
  1115. }
  1116. // NOVA SCRIPTA Surenos HEAL
  1117. if(IsPlayerInRangeOfPoint(playerid, 1, 1820.4,-1993.4,13.6))
  1118. {
  1119. PlayerInfo[playerid][pInteriorNr] = 1;
  1120. if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
  1121. {
  1122. SafeSetPlayerArmour(playerid, 50);
  1123. SetPlayerHealth(playerid, 100);
  1124. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 2500, 1);
  1125. }
  1126. else
  1127. {
  1128. SendClientMessage(playerid, COLOR_GREY, " Nisi clan Los Surenos-a !!!");
  1129. }
  1130. }
  1131. // NOVA SCRIPTA Surenos ORUZJE
  1132. if(IsPlayerInRangeOfPoint(playerid, 1, 1820.4,-1997.1,13.6))
  1133. {
  1134. PlayerInfo[playerid][pInteriorNr] = 1;
  1135. if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
  1136. {
  1137. ResetPlayerWeapons(playerid);
  1138. SafeGivePlayerWeapon(playerid, 24, 30); // deagle
  1139. SafeGivePlayerWeapon(playerid, 26, 30); // spawnoff
  1140. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  1141. }
  1142. else
  1143. {
  1144. SendClientMessage(playerid, COLOR_GREY, " Nisi clan Los Surenos-a !!!");
  1145. }
  1146. }
  1147. // nova scripta heal za HITMAN
  1148. if(IsPlayerInRangeOfPoint(playerid, 1, 1051,-314,74))
  1149. {
  1150. PlayerInfo[playerid][pInteriorNr] = 1;
  1151. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  1152. {
  1153. SafeSetPlayerArmour(playerid, 50);
  1154. SetPlayerHealth(playerid, 100);
  1155. GameTextForPlayer(playerid, "~w~Izlecen si i odmoran ...", 1500, 1);
  1156. }
  1157. else
  1158. {
  1159. SendClientMessage(playerid, COLOR_GREY, " Nisi clan HITMAN organizacije !!!");
  1160. }
  1161. }
  1162. // NOVA SCRIPTA HITMAN ORUZJE
  1163. if(IsPlayerInRangeOfPoint(playerid, 1, 1052,-311,74))
  1164. {
  1165. PlayerInfo[playerid][pInteriorNr] = 1;
  1166. if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
  1167. {
  1168. ResetPlayerWeapons(playerid);
  1169. SafeGivePlayerWeapon(playerid, 23, 30); // deagle
  1170. SafeGivePlayerWeapon(playerid, 34, 30); // sniper
  1171. SafeGivePlayerWeapon(playerid, 4, 1); // knife
  1172. GameTextForPlayer(playerid, "~w~Uzeo si naoruzanje ...", 1500, 1);
  1173. }
  1174. else
  1175. {
  1176. SendClientMessage(playerid, COLOR_GREY, " Nisi clan HITMAN organizacije !!!");
  1177. }
  1178. }
  1179. // ----------------------------------============================================================================================================
  1180. // ulaz u villu
  1181. if(IsPlayerInRangeOfPoint(playerid, 1, 1455.5,-1824.2,44.67))
  1182. {//SAPD Entrance
  1183. PlayerInfo[playerid][pInteriorNr] = 1;
  1184. GameTextForPlayer(playerid, "~w~Gradonacelnikova villa", 3000, 1);
  1185. SafeSetPlayerInterior(playerid, 1);
  1186. SafeSetPlayerPos(playerid,2234.1,1712,1012.38);
  1187. }
  1188. // 2234.1,1714.63,1012.38
  1189. // izlaz iz ville
  1190. if(IsPlayerInRangeOfPoint(playerid, 1, 2234.1,1714.63,1012.38))
  1191. {//SAPD Entrance
  1192. PlayerInfo[playerid][pInteriorNr] = 0;
  1193. GameTextForPlayer(playerid, "~w~Zgrada vlade", 3000, 1);
  1194. SafeSetPlayerInterior(playerid, 0);
  1195. SafeSetPlayerPos(playerid,1455.5,-1824.2,44.67);
  1196. }
  1197. // scarface izvidnica
  1198. if(IsPlayerInRangeOfPoint(playerid, 3, -1184,-1043,130))
  1199. {
  1200. SafeSetPlayerPos(playerid,-1186.57,-1048.3,173.3);
  1201. }
  1202. // scarface izvidnica -1186.57,-1048.3,173.28
  1203. if(IsPlayerInRangeOfPoint(playerid, 3, -1186.57,-1048.3,173.3))
  1204. {
  1205. SafeSetPlayerPos(playerid,-1184,-1042,130.3);
  1206. }
  1207. //============================================================================//
  1208. else if(IsPlayerInRangeOfPoint(playerid, 3, 1532.9670,-1582.6190,13.5469))
  1209. {
  1210. GameTextForPlayer(playerid, "~w~Zlatara", 5000, 1);
  1211. SetPlayerInterior(playerid, 0);
  1212. SafeSetPlayerPos(playerid,1496.9918,-1578.9235,1052.2726);
  1213. TogglePlayerControllable(playerid, 0);
  1214. SetCameraBehindPlayer(playerid);
  1215. }
  1216. else if(IsPlayerInRangeOfPoint(playerid, 3, 1496.9918,-1578.9235,1052.2726))
  1217. {
  1218. GameTextForPlayer(playerid, "~w~Beograd", 5000, 1);
  1219. SetPlayerInterior(playerid, 0);
  1220. SafeSetPlayerPos(playerid,1532.9670,-1582.6190,13.5469);
  1221. TogglePlayerControllable(playerid, 1);
  1222. }
  1223. //============================================================================//
  1224. if(IsPlayerInRangeOfPoint(playerid, 1, 1554.9537,-1675.6584,16.1953))
  1225. {//SAPD Entrance
  1226. PlayerInfo[playerid][pInteriorNr] = 1;
  1227. GameTextForPlayer(playerid, "~w~Police Department", 5000, 1);
  1228. SafeSetPlayerInterior(playerid, 6);
  1229. SafeSetPlayerPos(playerid,246.7079,66.2239,1003.6406);
  1230. }
  1231. else if(IsPlayerInRangeOfPoint(playerid, 1, 246.5325,62.4251,1003.6406))
  1232. {//SAPD Exit
  1233. PlayerInfo[playerid][pInteriorNr] = 0;
  1234. GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  1235. SafeSetPlayerInterior(playerid, 0);
  1236. SafeSetPlayerPos(playerid,1552.3231,-1674.6780,16.1953);
  1237. }
  1238. else if(IsPlayerInRangeOfPoint(playerid, 1, 478.0687,-1498.9708,20.4831))
  1239. {//RPC Enter
  1240. if(PlayerInfo[playerid][pRegularRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
  1241. {
  1242. PlayerInfo[playerid][pInteriorNr] = 10;
  1243. GameTextForPlayer(playerid, "~y~Dobrodosli u... ~n~~w~Regular Players Lounge ~n~~n~~n~~n~~n~~n~~n~~n~~n~ ~r~Kriminalce ne primamo", 8500,3);
  1244. SendClientMessage(playerid, COLOR_WHITE, "** Dobrodosli, Dodji blizu bara i Koristi /drinks kako bi dobio popis pica");
  1245. SendClientMessage(playerid, COLOR_WHITE, "** Zelis istrazivati, imas par pickupova uokolo");
  1246. SendClientMessage(playerid, COLOR_NICERED, "** Zlocincima zabranjen ulaz,svatko ko udje a zlocinac je to mu je jednako 2 sata zatvora.");
  1247. SafeSetPlayerInterior(playerid, 3);
  1248. SafeSetPlayerPos(playerid,-2638.7832,1403.1351,906.4609);
  1249. SetPlayerVirtualWorld(playerid, 20);
  1250. PlayerInfo[playerid][pVirWorld] = 20;
  1251. }
  1252. else return SendClientMessage(playerid, COLOR_GREY,"* You are not a Regular Player!");
  1253. }
  1254. else if (IsPlayerInRangeOfPoint(playerid, 1, -2636.8042,1402.9908,906.4609))
  1255. {//RPC Exit
  1256. PlayerInfo[playerid][pInteriorNr] = 0;
  1257. GameTextForPlayer(playerid, "~w~Los Santos", 5000,1);
  1258. SafeSetPlayerInterior(playerid, 0);
  1259. SafeSetPlayerPos(playerid,478.9689,-1495.9681,20.4098);
  1260. PlayerInfo[playerid][pVirWorld] = 0;
  1261. SetPlayerVirtualWorld(playerid, 0);
  1262. }
  1263.  
  1264. else if (IsPlayerInRangeOfPoint(playerid, 1, 488.2531,-82.7632,998.7578))
  1265. {
  1266. //Misty/10 Green Toilets
  1267. PlayerInfo[playerid][pInteriorNr] = 26;
  1268. SafeSetPlayerPos(playerid, 2277.5942,-1139.8883,1050.8984);
  1269. GameTextForPlayer(playerid, "~w~Restroom", 5000, 3);
  1270. SafeSetPlayerInterior(playerid,11);
  1271. }
  1272. else if (IsPlayerInRangeOfPoint(playerid, 1, 2280.0476,-1139.5413,1050.8984))
  1273. {
  1274. //Misty/10 Green Toilets
  1275. PlayerInfo[playerid][pInteriorNr] = 26;
  1276. SafeSetPlayerPos(playerid, 490.9059,-81.4256,998.7578);
  1277. GameTextForPlayer(playerid, "~w~Ten Green Bottles", 5000, 3);
  1278. SafeSetPlayerInterior(playerid,11);
  1279. }
  1280. else if(IsPlayerInRangeOfPoint(playerid, 1, 306.2120,-141.8780,1004.0547))
  1281. {
  1282. GameTextForPlayer(playerid, "~w~Ammunation Training", 5000, 1);
  1283. SafeSetPlayerPos(playerid, 301.2120,-141.8780,1004.0547);
  1284. SetPlayerCheckpoint(playerid, 300.5705,-134.0464,1004.0625, 3);
  1285. }
  1286. else if(IsPlayerInRangeOfPoint(playerid, 1,304.2120,-141.8780,1004.0547))
  1287. {
  1288. GameTextForPlayer(playerid, "~w~Ammunation", 5000, 1);
  1289. SafeSetPlayerPos(playerid, 308.2120,-141.8780,1004.0547);
  1290. DisablePlayerCheckpoint(playerid);
  1291. }
  1292.  
  1293. else if (IsPlayerInRangeOfPoint(playerid, 1, 1518.5179,-1452.9224,14.2031))
  1294. {
  1295. //FBI Enter
  1296. PlayerInfo[playerid][pInteriorNr] = 4;
  1297. SafeSetPlayerInterior(playerid,3);
  1298. SafeSetPlayerPos(playerid, 235.7598,142.4089,1003.1);
  1299. GameTextForPlayer(playerid, "~w~FBI Department",5000,1);
  1300. SetPlayerFacingAngle(playerid, 0);
  1301. }
  1302. else if (IsPlayerInRangeOfPoint(playerid, 1, 288.7287,167.0377,1007.1719))
  1303. {
  1304. //FBI Exit
  1305. PlayerInfo[playerid][pInteriorNr] = 0;
  1306. SafeSetPlayerPos(playerid, 1518.4724,-1450.2354,13.5469);
  1307. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1308. SafeSetPlayerInterior(playerid,0);
  1309. SetPlayerFacingAngle(playerid, 0);
  1310. }
  1311. else if (IsPlayerInRangeOfPoint(playerid, 1, 238.3001,138.9406,1003.0234))
  1312. {
  1313. //FBI Exit
  1314. PlayerInfo[playerid][pInteriorNr] = 0;
  1315. SafeSetPlayerPos(playerid, 1518.4724,-1450.2354,13.5469);
  1316. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1317. SafeSetPlayerInterior(playerid,0);
  1318. SetPlayerFacingAngle(playerid, 0);
  1319. }
  1320. else if (IsPlayerInRangeOfPoint(playerid, 1,1173.2563,-1323.3102,15.3943))
  1321. {
  1322. //Hospital enter
  1323. PlayerInfo[playerid][pInteriorNr] = 29;
  1324. SafeSetPlayerPos(playerid, 1222.0614,-1250.3997,1287.8243);
  1325. GameTextForPlayer(playerid, "~w~All Saints Hospital",5000,1);
  1326. SafeSetPlayerInterior(playerid,6);
  1327. SetPlayerFacingAngle(playerid, 0);
  1328. TogglePlayerControllable(playerid, 0);
  1329. SetTimerEx("Unfreezeply",3000,false,"i",playerid);
  1330. }
  1331. else if (IsPlayerInRangeOfPoint(playerid, 1,1219.6620,-1250.0331,1287.8243))
  1332. {
  1333. //Hospital exit
  1334. PlayerInfo[playerid][pInteriorNr] = 0;
  1335. SafeSetPlayerPos(playerid, 1174.2563,-1323.3102,15.3943);
  1336. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1337. SafeSetPlayerInterior(playerid,0);
  1338. SetPlayerFacingAngle(playerid, 270);
  1339. }
  1340. else if (IsPlayerInRangeOfPoint(playerid, 1,1298.7075,-798.5981,84.1406))
  1341. {
  1342. //La Famiglia Sinatra gang hq
  1343. if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
  1344. {
  1345. SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);
  1346. GameTextForPlayer(playerid, "~w~Yakuza Baza",5000,1);
  1347. SafeSetPlayerInterior(playerid,5);
  1348. SetPlayerFacingAngle(playerid, 181);
  1349. PlayerInfo[playerid][pInteriorNr] = 31;
  1350. }
  1351. else if(hqlock[luclock] == 0)
  1352. {
  1353. SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);
  1354. GameTextForPlayer(playerid, "~w~Yakuza Baza",5000,1);
  1355. SafeSetPlayerInterior(playerid,5);
  1356. SetPlayerFacingAngle(playerid, 181);
  1357. PlayerInfo[playerid][pInteriorNr] = 31;
  1358. }
  1359. else
  1360. {
  1361. GameTextForPlayer(playerid, "~r~Locked",5000,1);
  1362. }
  1363. }
  1364. else if(IsPlayerInRangeOfPoint(playerid, 1, 1252.5208,-789.2282,1084.0078))
  1365. {
  1366. //La Famiglia Sinatra gang hq
  1367. PlayerInfo[playerid][pInteriorNr] = 0;
  1368. SafeSetPlayerPos(playerid, 1298.6263,-801.5491,84.1406);
  1369. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1370. SafeSetPlayerInterior(playerid,0);
  1371. SetPlayerFacingAngle(playerid, 1);
  1372. }
  1373. else if (IsPlayerInRangeOfPoint(playerid, 1,691.5770,-1276.0026,13.5607))
  1374. {
  1375. //Under Ground Racers gang hq
  1376. if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
  1377. {
  1378. PlayerInfo[playerid][pInteriorNr] = 6;
  1379. SafeSetPlayerPos(playerid, 962.0352,-53.4519,1001.1246);
  1380. GameTextForPlayer(playerid, "~w~Under Ground Racers Baza",5000,1);
  1381. SafeSetPlayerInterior(playerid,3);
  1382. SetPlayerFacingAngle(playerid, 181);
  1383. }
  1384. else if(hqlock[guclock] == 0)
  1385. {
  1386. PlayerInfo[playerid][pInteriorNr] = 6;
  1387. SafeSetPlayerPos(playerid, 962.0352,-53.4519,1001.1246);
  1388. GameTextForPlayer(playerid, "~w~Under Ground Racers Baza",5000,1);
  1389. SafeSetPlayerInterior(playerid,3);
  1390. SetPlayerFacingAngle(playerid, 181);
  1391. }
  1392. else
  1393. {
  1394. GameTextForPlayer(playerid, "~r~Locked",5000,1);
  1395. }
  1396. }
  1397. else if (IsPlayerInRangeOfPoint(playerid, 1,967.6099,-53.1411,1001.1246))
  1398. {
  1399. //Under Ground Racers gang hq
  1400. PlayerInfo[playerid][pInteriorNr] = 0;
  1401. SafeSetPlayerPos(playerid, 689.8694,-1276.0619,13.5595);
  1402. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1403. SafeSetPlayerInterior(playerid,0);
  1404. SetPlayerFacingAngle(playerid, 1);
  1405. }
  1406. else if (IsPlayerInRangeOfPoint(playerid, 1, 1122.7406,-2037.0421,69.8942))
  1407. {
  1408. //Chornaya Bratva gang hq
  1409. if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
  1410. {
  1411. PlayerInfo[playerid][pInteriorNr] = 8;
  1412. SafeSetPlayerPos(playerid, 2576.5076,-1300.3403,1060.9844);
  1413. GameTextForPlayer(playerid, "~w~Lcn Baza",5000,1);
  1414. SafeSetPlayerInterior(playerid,2);
  1415. SetPlayerFacingAngle(playerid, 181);
  1416. }
  1417. else if(hqlock[stlock] == 0)
  1418. {
  1419. PlayerInfo[playerid][pInteriorNr] = 8;
  1420. SafeSetPlayerPos(playerid, 2576.5076,-1300.3403,1060.9844);
  1421. GameTextForPlayer(playerid, "~w~Lcn Baza",5000,1);
  1422. SafeSetPlayerInterior(playerid,2);
  1423. SetPlayerFacingAngle(playerid, 181);
  1424. }
  1425. else
  1426. {
  1427. GameTextForPlayer(playerid, "~r~Zakljucano",5000,1);
  1428. }
  1429. }
  1430. else if (IsPlayerInRangeOfPoint(playerid, 1, 2576.7900,-1284.8854,1054.6406))
  1431. {
  1432. //Chornaya Bratva gang hq
  1433. PlayerInfo[playerid][pInteriorNr] = 0;
  1434. SafeSetPlayerPos(playerid, 1123.9808,-2037.0841,69.8855);
  1435. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1436. SafeSetPlayerInterior(playerid,0);
  1437. SetPlayerFacingAngle(playerid, 1);
  1438. }
  1439. else if (IsPlayerInRangeOfPoint(playerid, 1, 168.2048,-1769.3395,4.4728))
  1440. {
  1441. //Bloods gang hq
  1442. if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
  1443. {
  1444. PlayerInfo[playerid][pInteriorNr] = 7;
  1445. SafeSetPlayerPos(playerid, 446.9658,1399.1479,1084.3047);
  1446. GameTextForPlayer(playerid, "~w~Bloods Baza",5000,1);
  1447. SafeSetPlayerInterior(playerid,2);
  1448. SetPlayerFacingAngle(playerid, 1);
  1449. }
  1450. else if(hqlock[iolock] == 0)
  1451. {
  1452. PlayerInfo[playerid][pInteriorNr] = 7;
  1453. SafeSetPlayerPos(playerid, 446.9658,1399.1479,1084.3047);
  1454. GameTextForPlayer(playerid, "~w~Bloods Baza",5000,1);
  1455. SafeSetPlayerInterior(playerid,2);
  1456. SetPlayerFacingAngle(playerid, 0);
  1457. }
  1458. else
  1459. {
  1460. GameTextForPlayer(playerid, "~r~Zakljucano",5000,1);
  1461. }
  1462. }
  1463. else if (IsPlayerInRangeOfPoint(playerid, 1, 447.0208,1397.4796,1084.3047))
  1464. {
  1465. //Bloods gang hq
  1466. PlayerInfo[playerid][pInteriorNr] = 0;
  1467. SafeSetPlayerPos(playerid, 172.9946,-1769.8417,4.4319);
  1468. GameTextForPlayer(playerid, "~w~Bloods",5000,1);
  1469. SafeSetPlayerInterior(playerid,0);
  1470. SetPlayerFacingAngle(playerid, 179);
  1471. }
  1472. else if (IsPlayerInRangeOfPoint(playerid, 1, 1828.1594,-1980.4380,13.5469))
  1473. {
  1474. //Surenos HQ
  1475. if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
  1476. {
  1477. PlayerInfo[playerid][pInteriorNr] = 9;
  1478. SafeSetPlayerPos(playerid, 2351.0479,-1180.8905,1027.9766);
  1479. GameTextForPlayer(playerid, "~w~Surenos Baza",5000,1);
  1480. SafeSetPlayerInterior(playerid,5);
  1481. SetPlayerFacingAngle(playerid, 90);
  1482. }
  1483. else if(hqlock[surlock] == 0)
  1484. {
  1485. PlayerInfo[playerid][pInteriorNr] = 9;
  1486. SafeSetPlayerPos(playerid, 2351.0479,-1180.8905,1027.9766);
  1487. GameTextForPlayer(playerid, "~w~Surenos Baza",5000,1);
  1488. SafeSetPlayerInterior(playerid,5);
  1489. SetPlayerFacingAngle(playerid, 90);
  1490. }
  1491. else
  1492. {
  1493. GameTextForPlayer(playerid, "~r~Zakljucano",5000,1);
  1494. }
  1495. }
  1496. else if (IsPlayerInRangeOfPoint(playerid, 1, 2352.9187,-1180.9679,1027.9766))
  1497. {
  1498. //Surenos HQ
  1499. PlayerInfo[playerid][pInteriorNr] = 0;
  1500. SafeSetPlayerPos(playerid, 1830.1904,-1983.0223,13.5469);
  1501. GameTextForPlayer(playerid, "~w~Surenos",5000,1);
  1502. SafeSetPlayerInterior(playerid,0);
  1503. SetPlayerFacingAngle(playerid, 179);
  1504. }
  1505. else if (IsPlayerInRangeOfPoint(playerid, 1, 1481.0206,-1771.1138,18.7958))
  1506. {
  1507. //City hall
  1508. PlayerInfo[playerid][pInteriorNr] = 2;
  1509. SafeSetPlayerInterior(playerid,3);
  1510. SafeSetPlayerPos(playerid, 386.2978,173.8582,1008.45);
  1511. SetPlayerFacingAngle(playerid, 0);
  1512. }
  1513. else if (IsPlayerInRangeOfPoint(playerid, 1, 390.0630,173.5741,1008.3828))
  1514. {
  1515. //City hall
  1516. PlayerInfo[playerid][pInteriorNr] = 0;
  1517. SafeSetPlayerPos(playerid, 1481.0206,-1769.5138,18.7958);
  1518. GameTextForPlayer(playerid, "~w~Gradska Vijecnica",5000,1);
  1519. SafeSetPlayerInterior(playerid,0);
  1520. SetPlayerFacingAngle(playerid, 0);
  1521. }
  1522. else if (IsPlayerInRangeOfPoint(playerid, 1, 681.6054,-473.7628,16.5363))
  1523. {
  1524. //TIM
  1525. PlayerInfo[playerid][pInteriorNr] = 40;
  1526. SafeSetPlayerPos(playerid, 679.3209,-452.7324,-25.6172);
  1527. GameTextForPlayer(playerid, "~w~The Imperial Mafia",5000,1);
  1528. SafeSetPlayerInterior(playerid, 1);
  1529. SetPlayerFacingAngle(playerid, 0);
  1530. }
  1531. else if (IsPlayerInRangeOfPoint(playerid, 1, 681.5295,-450.8412,-25.6172))
  1532. {
  1533. //TIM
  1534. PlayerInfo[playerid][pInteriorNr] = 0;
  1535. SafeSetPlayerPos(playerid, 683.2062,-473.8727,16.5363);
  1536. GameTextForPlayer(playerid, "~w~Dillimore",5000,1);
  1537. SafeSetPlayerInterior(playerid,0);
  1538. SetPlayerFacingAngle(playerid, 0);
  1539. }
  1540. else if (IsPlayerInRangeOfPoint(playerid, 1, 1784.58,-1297.52,13.37))
  1541. {
  1542. //BBC Studio
  1543. PlayerInfo[playerid][pInteriorNr] = 32;
  1544. SafeSetPlayerPos(playerid, 1817.0708,-1297.3933,109.2669);
  1545. GameTextForPlayer(playerid, "~w~BBC Studio",5000,1);
  1546. SetPlayerFacingAngle(playerid, 0);
  1547. }
  1548. else if (IsPlayerInRangeOfPoint(playerid, 1, 1817.6517,-1294.2751,109.2697))
  1549. {
  1550. //BBC Studio
  1551. PlayerInfo[playerid][pInteriorNr] = 0;
  1552. SafeSetPlayerPos(playerid, 1787.6311,-1297.4938,13.3793);
  1553. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1554. SafeSetPlayerInterior(playerid,0);
  1555. SetPlayerFacingAngle(playerid, 0);
  1556. }
  1557. else if (IsPlayerInRangeOfPoint(playerid, 1, 1752.8452,-1894.1328,13.5573))
  1558. {
  1559. //LA Yellow Cab Co.
  1560. PlayerInfo[playerid][pInteriorNr] = 33;
  1561. SafeSetPlayerPos(playerid, 371.8502,182.0368,1014.1875);
  1562. GameTextForPlayer(playerid, "~w~Taxi Kompanija.",5000,1);
  1563. SafeSetPlayerInterior(playerid,3);
  1564. SetPlayerFacingAngle(playerid, 0);
  1565. }
  1566. else if (IsPlayerInRangeOfPoint(playerid, 1, 371.4523,180.2195,1014.1875))
  1567. {
  1568. //LA Yellow Cab Co.
  1569. PlayerInfo[playerid][pInteriorNr] = 0;
  1570. SafeSetPlayerPos(playerid, 1755.7578,-1894.1992,13.5566);
  1571. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1572. SafeSetPlayerInterior(playerid,0);
  1573. SetPlayerFacingAngle(playerid, 0);
  1574. }
  1575. else if (IsPlayerInRangeOfPoint(playerid, 1, 2045.3928,-1908.0372,13.5469))
  1576. {
  1577. //DMW
  1578. PlayerInfo[playerid][pInteriorNr] = 11;
  1579. SafeSetPlayerPos(playerid, 1494.6207,1305.2336,1093.2891);
  1580. GameTextForPlayer(playerid, "~w~License center",5000,1);
  1581. SafeSetPlayerInterior(playerid,3);
  1582. SetPlayerFacingAngle(playerid, 0);
  1583. }
  1584. else if (IsPlayerInRangeOfPoint(playerid, 1, 1494.2778,1303.7288,1093.2891))
  1585. {
  1586. //DMW Exit
  1587. PlayerInfo[playerid][pInteriorNr] = 0;
  1588. SafeSetPlayerPos(playerid, 2046.8928,-1908.0372,13.5469);
  1589. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1590. SafeSetPlayerInterior(playerid,0);
  1591. SetPlayerFacingAngle(playerid, 280);
  1592. }
  1593. else if (IsPlayerInRangeOfPoint(playerid, 1, 1524.5724,-1677.8043,6.2188))
  1594. {
  1595. //PD Elevator
  1596. PlayerInfo[playerid][pInteriorNr] = 1;
  1597. SafeSetPlayerPos(playerid, 244.0099,66.4152,1003.6406);
  1598. GameTextForPlayer(playerid, "~w~Police Department",5000,1);
  1599. SafeSetPlayerInterior(playerid,6);
  1600. SetPlayerFacingAngle(playerid, 270);
  1601. }
  1602. else if (IsPlayerInRangeOfPoint(playerid, 1, 1557.7257,-1675.2711,28.3955))
  1603. {
  1604. //PD Elevator
  1605. PlayerInfo[playerid][pInteriorNr] = 1;
  1606. SafeSetPlayerPos(playerid, 244.0099,66.4152,1003.6406);
  1607. GameTextForPlayer(playerid, "~w~Police Department",5000,1);
  1608. SafeSetPlayerInterior(playerid,6);
  1609. SetPlayerFacingAngle(playerid, 270);
  1610. }
  1611. else if (IsPlayerInRangeOfPoint(playerid, 1, 2730.4297,-2451.5000,17.5937))
  1612. {
  1613. //Army Entrance
  1614. PlayerInfo[playerid][pInteriorNr] = 5;
  1615. SafeSetPlayerPos(playerid, 249.9911,108.3193,1003.2188);
  1616. GameTextForPlayer(playerid, "~g~Army Barracks",5000,1);
  1617. SafeSetPlayerInterior(playerid,10);
  1618. SetPlayerFacingAngle(playerid, 270);
  1619. }
  1620. else if (IsPlayerInRangeOfPoint(playerid, 1, 246.7823,107.8988,1003.2188))
  1621. {
  1622. //Army Exit
  1623. PlayerInfo[playerid][pInteriorNr] = 0;
  1624. SafeSetPlayerPos(playerid, 2734.6604,-2450.5486,17.5938);
  1625. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1626. SafeSetPlayerInterior(playerid,0);
  1627. SetPlayerFacingAngle(playerid, 270);
  1628. }
  1629. else if (IsPlayerInRangeOfPoint(playerid, 1, 616.7385,-1542.1398,15.3345))
  1630. {
  1631. //Firemen Entrance
  1632. PlayerInfo[playerid][pInteriorNr] = 23;
  1633. SafeSetPlayerPos(playerid, 2807.619873,-1171.899902,1025.570312);
  1634. GameTextForPlayer(playerid, "~r~Firemen Barracks",5000,1);
  1635. SafeSetPlayerInterior(playerid,8);
  1636. SetPlayerFacingAngle(playerid, 270);
  1637. }
  1638. else if (IsPlayerInRangeOfPoint(playerid, 1, 2807.6807,-1174.5410,1025.5703))
  1639. {
  1640. //Firemen Exit
  1641. PlayerInfo[playerid][pInteriorNr] = 0;
  1642. SafeSetPlayerPos(playerid, 618.3007,-1537.3007,15.2589);
  1643. GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
  1644. SafeSetPlayerInterior(playerid,0);
  1645. SetPlayerFacingAngle(playerid, 270);
  1646. }
  1647. else if (IsPlayerInRangeOfPoint(playerid, 3, 2812.3806,-1163.9534,1029.1719))
  1648. {
  1649. //Firemen Roof Entrance
  1650. SafeSetPlayerPos(playerid, 574.9918,-1491.9247,30.8906);
  1651. GameTextForPlayer(playerid, "~r~Firemen Barracks Roof",5000,1);
  1652. SafeSetPlayerInterior(playerid,0);
  1653. SetPlayerFacingAngle(playerid, 270);
  1654. }
  1655. else if (IsPlayerInRangeOfPoint(playerid, 1, 571.4652,-1522.2427,30.8906))
  1656. {
  1657. //Firemen Roof Entrance
  1658. PlayerInfo[playerid][pInteriorNr] = 23;
  1659. SafeSetPlayerPos(playerid, 2806.7979,-1161.3995,1029.1646);
  1660. GameTextForPlayer(playerid, "~r~Firemen Barracks",5000,1);
  1661. SafeSetPlayerInterior(playerid,8);
  1662. SetPlayerFacingAngle(playerid, 270);
  1663. }
  1664. else if (IsPlayerInRangeOfPoint(playerid, 1.5, 1570.3828,-1333.8882,16.4844))
  1665. {
  1666. //Next to PD building
  1667. SafeSetPlayerPos(playerid, 1545.0068,-1366.5094,327.2868);
  1668. GameTextForPlayer(playerid, "~w~Roof of News building",5000,1);
  1669. SafeSetPlayerInterior(playerid,0);
  1670. }
  1671. else if (IsPlayerInRangeOfPoint(playerid, 1.5, 1548.8167,-1366.2247,326.2109))
  1672. {
  1673. //Next to PD building
  1674. SafeSetPlayerPos(playerid, 1572.1115,-1332.5288,16.4844);
  1675. GameTextForPlayer(playerid, "~w~News building",5000,1);
  1676. SafeSetPlayerInterior(playerid,0);
  1677. }
  1678. }
  1679. else if ((newkeys & KEY_LOOK_BEHIND) && !(oldkeys & KEY_LOOK_BEHIND))
  1680. {
  1681. if(IsAnNg(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
  1682. {
  1683. if(IsPlayerInRangeOfPoint(playerid, 4,238.9703,112.8155,1003.2188))
  1684. {
  1685. if(armyw1 == 0)
  1686. {
  1687. MoveDynamicObject(armywindows1, 239.774,111.511,1000.61, 1.7500);
  1688. SendClientMessage(playerid, COLOR_BLUE,"Prozori Otvoreni, Molimo vas da ih zatvorite!");
  1689. GetPlayerName(playerid, sendername, sizeof(sendername));
  1690. format(string, sizeof(string), "* %s uzima daljinski i otvara Prozore.", sendername);
  1691. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1692. armyw1 = 1;
  1693. }
  1694. else
  1695. {
  1696. MoveDynamicObject(armywindows1, 239.774,111.511,1002.31, 3.0000);
  1697. SendClientMessage(playerid, COLOR_BLUE,"Prozori Zatvoreni, Hvala!");
  1698. GetPlayerName(playerid, sendername, sizeof(sendername));
  1699. format(string, sizeof(string), "* %s uzima daljinski i zatvara Prozore.", sendername);
  1700. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1701. armyw1 = 0;
  1702. }
  1703. }
  1704. else if(IsPlayerInRangeOfPoint(playerid, 2,253.8096,117.3113,1003.2188))
  1705. {
  1706. if(armyw2 == 0)
  1707. {
  1708. MoveDynamicObject(armywindows2, 253.050,116.195,1000.61, 1.7500);
  1709. SendClientMessage(playerid, COLOR_BLUE,"Prozori Otvoreni, Molimo vas da ih zatvorite!");
  1710. GetPlayerName(playerid, sendername, sizeof(sendername));
  1711. format(string, sizeof(string), "* %s uzima daljinski i otvara Prozore.", sendername);
  1712. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1713. armyw2 = 1;
  1714. }
  1715. else
  1716. {
  1717. MoveDynamicObject(armywindows2, 253.050,116.195,1002.31, 3.0000);
  1718. SendClientMessage(playerid, COLOR_BLUE,"Prozori Zatvoreni, Hvala!");
  1719. GetPlayerName(playerid, sendername, sizeof(sendername));
  1720. format(string, sizeof(string), "* %s uzima daljinski i zatvara Prozore.", sendername);
  1721. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1722. armyw2 = 0;
  1723. }
  1724. }
  1725. }
  1726. if(IsAPDMember(playerid) || PlayerInfo[playerid][pAdmin] >= 6 || IsAFreecop(playerid))
  1727. {
  1728. if(IsPlayerInRangeOfPoint(playerid, 4,251.2575,67.6536,1003.6406))
  1729. {
  1730. if(lspdw == 0)
  1731. {
  1732. MoveDynamicObject(lspdwindows, 250.524,67.650,1001.08, 3.0000);
  1733. SendClientMessage(playerid, COLOR_BLUE,"SAPD Prozori Otvoreni, Molimo vas da ih zatvorite!");
  1734. GetPlayerName(playerid, sendername, sizeof(sendername));
  1735. format(string, sizeof(string), "* %s uzima daljinski i otvara Prozore.", sendername);
  1736. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1737. lspdw = 1;
  1738. }
  1739. else
  1740. {
  1741. MoveDynamicObject(lspdwindows, 250.524,67.650,1002.58, 3.0000);
  1742. SendClientMessage(playerid, COLOR_BLUE,"SAPD Windows is Closed, Thank You!");
  1743. GetPlayerName(playerid, sendername, sizeof(sendername));
  1744. format(string, sizeof(string), "* %s takes his/her remote control and closes the Windows.", sendername);
  1745. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1746. lspdw = 0;
  1747. }
  1748. }
  1749. }
  1750. if(IsAPDMember(playerid) || IsAFreecop(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
  1751. {
  1752. if(IsPlayerInRangeOfPoint(playerid, 2,250.611,63.2995,1003.18))
  1753. {
  1754. if(lspd1 == 0)
  1755. {
  1756. MoveDynamicObject(lspddoor1, 250.611,63.2995,1000.64, 4.5000);
  1757. SendClientMessage(playerid, COLOR_BLUE,"SAPD door is open, please close it!");
  1758. GetPlayerName(playerid, sendername, sizeof(sendername));
  1759. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1760. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1761. lspd1 = 1;
  1762. }
  1763. else
  1764. {
  1765. MoveDynamicObject(lspddoor1, 250.611,63.2995,1003.04, 4.5000);
  1766. SendClientMessage(playerid, COLOR_BLUE,"SAPD door is closed, thank you!");
  1767. GetPlayerName(playerid, sendername, sizeof(sendername));
  1768. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1769. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1770. lspd1 = 0;
  1771. }
  1772. }
  1773. else if(IsPlayerInRangeOfPoint(playerid, 2,246.228,72.4962,1003.04))
  1774. {
  1775. if(lspd2 == 0)
  1776. {
  1777. MoveDynamicObject(lspddoor2, 246.228,72.4962,1000.63, 4.5000);
  1778. SendClientMessage(playerid, COLOR_BLUE,"SAPD door is open, please close it!");
  1779. GetPlayerName(playerid, sendername, sizeof(sendername));
  1780. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1781. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1782. lspd2 = 1;
  1783. }
  1784. else
  1785. {
  1786. MoveDynamicObject(lspddoor2, 246.228,72.4962,1003.18, 4.5000);
  1787. SendClientMessage(playerid, COLOR_BLUE,"SAPD Control door is closed, thank you!");
  1788. GetPlayerName(playerid, sendername, sizeof(sendername));
  1789. format(string, sizeof(string), "* %s takes his/her remote control and Closes the door.", sendername);
  1790. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1791. lspd2 = 0;
  1792. }
  1793. }
  1794. else if(IsPlayerInRangeOfPoint(playerid, 2,1582.6205,-1638.0587,12.3776))
  1795. {
  1796. if(lspd3 == 0)
  1797. {
  1798. MoveDynamicObject(pdgate4, 1582.6205,-1638.0587,7.3776, 4.5000);
  1799. SendClientMessage(playerid, COLOR_BLUE,"SAPD Garage is open, please close it!");
  1800. GetPlayerName(playerid, sendername, sizeof(sendername));
  1801. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1802. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1803. lspd3 = 1;
  1804. }
  1805. else
  1806. {
  1807. MoveDynamicObject(pdgate4, 1582.6205,-1638.0587,12.3776, 4.5000);
  1808. SendClientMessage(playerid, COLOR_BLUE,"SAPD Garage door is closed, thank you!");
  1809. GetPlayerName(playerid, sendername, sizeof(sendername));
  1810. format(string, sizeof(string), "* %s takes his/her remote control and Closes the door.", sendername);
  1811. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1812. lspd3 = 0;
  1813. }
  1814. }
  1815. }
  1816. if(IsAnNg(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
  1817. {
  1818. if(IsPlayerInRangeOfPoint(playerid, 2,239.5503,117.5205,1003.2188))
  1819. {
  1820. if(army1 == 0)
  1821. {
  1822. MoveDynamicObject(armydoor1, 239.591,118.098,1000.21, 4.0);
  1823. SendClientMessage(playerid, COLOR_BLUE,"Army door is open, please close it!");
  1824. GetPlayerName(playerid, sendername, sizeof(sendername));
  1825. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1826. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1827. army1 = 1;
  1828. }
  1829. else
  1830. {
  1831. MoveDynamicObject(armydoor1, 239.591,118.098,1003.01, 4.5);
  1832. SendClientMessage(playerid, COLOR_BLUE,"Army door is closed, thank you!");
  1833. GetPlayerName(playerid, sendername, sizeof(sendername));
  1834. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1835. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1836. army1 = 0;
  1837. }
  1838. }
  1839. else if(IsPlayerInRangeOfPoint(playerid, 2,239.5794,125.0337,1003.2188))
  1840. {
  1841. if(army2 == 0)
  1842. {
  1843. MoveDynamicObject(armydoor2, 239.635,125.544,1000.21, 4.5);
  1844. SendClientMessage(playerid, COLOR_BLUE,"Army door is open, please close it!");
  1845. GetPlayerName(playerid, sendername, sizeof(sendername));
  1846. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1847. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1848. army2 = 1;
  1849. }
  1850. else
  1851. {
  1852. MoveDynamicObject(armydoor2, 239.635,125.544,1003.21, 4.5);
  1853. SendClientMessage(playerid, COLOR_BLUE,"Army door is closed, thank you!");
  1854. GetPlayerName(playerid, sendername, sizeof(sendername));
  1855. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1856. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1857. army2 = 0;
  1858. }
  1859. }
  1860. else if(IsPlayerInRangeOfPoint(playerid, 2,253.1278,109.1392,1003.2188))
  1861. {
  1862. if(army3 == 0)
  1863. {
  1864. MoveDynamicObject(armydoor3, 253.146,108.902,1000.21, 4.5);
  1865. SendClientMessage(playerid, COLOR_BLUE,"Army door is open, please close it!");
  1866. GetPlayerName(playerid, sendername, sizeof(sendername));
  1867. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1868. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1869. army3 = 1;
  1870. }
  1871. else
  1872. {
  1873. MoveDynamicObject(armydoor3, 253.146,108.902,1003.01, 4.5);
  1874. SendClientMessage(playerid, COLOR_BLUE,"Army door is closed, thank you!");
  1875. GetPlayerName(playerid, sendername, sizeof(sendername));
  1876. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1877. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1878. army3 = 0;
  1879. }
  1880. }
  1881. }
  1882. if(IsAnFbi(playerid) || PlayerInfo[playerid][pAdmin] >= 6)
  1883. {
  1884. if(IsPlayerInRangeOfPoint(playerid, 3,228.250,151.334,1002.67))
  1885. {
  1886. if(fbi1 == 0)
  1887. {
  1888. MoveDynamicObject(fbidoor1, 228.250,151.334,1000.02, 4.5);
  1889. SendClientMessage(playerid, COLOR_BLUE,"FBI door is open, please close it!");
  1890. GetPlayerName(playerid, sendername, sizeof(sendername));
  1891. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1892. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1893. fbi1 = 1;
  1894. }
  1895. else
  1896. {
  1897. MoveDynamicObject(fbidoor1, 228.250,151.334,1002.67, 4.5);
  1898. SendClientMessage(playerid, COLOR_BLUE,"FBI door is closed, thank you!");
  1899. GetPlayerName(playerid, sendername, sizeof(sendername));
  1900. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1901. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1902. fbi1 = 0;
  1903. }
  1904. }
  1905. else if(IsPlayerInRangeOfPoint(playerid, 3,271.140,191.185,1008.97))
  1906. {
  1907. if(fbi2 == 0)
  1908. {
  1909. MoveDynamicObject(fbidoor2, 271.140,191.185,1005.17, 4.5);
  1910. SendClientMessage(playerid, COLOR_BLUE,"FBI door is open, please close it!");
  1911. GetPlayerName(playerid, sendername, sizeof(sendername));
  1912. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1913. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1914. fbi2 = 1;
  1915. }
  1916. else
  1917. {
  1918. MoveDynamicObject(fbidoor2, 271.140,191.185,1008.97, 4.5);
  1919. SendClientMessage(playerid, COLOR_BLUE,"FBI door is closed, thank you!");
  1920. GetPlayerName(playerid, sendername, sizeof(sendername));
  1921. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1922. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1923. fbi2 = 0;
  1924. }
  1925. }
  1926. else if(IsPlayerInRangeOfPoint(playerid, 3,238.784,193.768,1008.97))
  1927. {
  1928. if(fbi3 == 0)
  1929. {
  1930. MoveDynamicObject(fbidoor3, 238.784,193.768,1005.17, 4.5);
  1931. SendClientMessage(playerid, COLOR_BLUE,"FBI door is open, please close it!");
  1932. GetPlayerName(playerid, sendername, sizeof(sendername));
  1933. format(string, sizeof(string), "* %s takes his/her remote control and opens the door.", sendername);
  1934. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1935. fbi3 = 1;
  1936. }
  1937. else
  1938. {
  1939. MoveDynamicObject(fbidoor3, 238.784,193.768,1008.97, 4.5);
  1940. SendClientMessage(playerid, COLOR_BLUE,"FBI door is closed, thank you!");
  1941. GetPlayerName(playerid, sendername, sizeof(sendername));
  1942. format(string, sizeof(string), "* %s takes his/her remote control and closes the door.", sendername);
  1943. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1944. fbi3 = 0;
  1945. }
  1946. }
  1947. }
  1948. }
  1949. else if ((newkeys & KEY_SUBMISSION) && !(oldkeys & KEY_ACTION))
  1950. {
  1951. if(IsAPDMember(playerid) || IsAFreecop(playerid))
  1952. {
  1953. if (IsPlayerInRangeOfPoint(playerid, 15,1589.053344,-1638.123168,14.122960))
  1954. {
  1955. if(lspdg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
  1956. MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
  1957. SetTimer("GateClose", 12000, 0);
  1958. SendClientMessage(playerid, COLOR_BLUE,"A garage is opened and will close in 7 seconds.");
  1959. GetPlayerName(playerid, sendername, sizeof(sendername));
  1960. format(string, sizeof(string), "* %s takes his/her remote and opens a garage.", sendername);
  1961. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1962. PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
  1963. lspdg = 1;
  1964. }
  1965. else if (IsPlayerInRangeOfPoint(playerid, 15,1544.700317,-1630.735717,13.096980))
  1966. {
  1967. if(lspdg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Barrier is Already Opened"); return 1; }
  1968. DestroyDynamicObject( pdgate2 );
  1969. pdgate3 = CreateDynamicObject(968,1544.700317,-1630.735717,12.924660,0.000000,0.000000,270.972869);
  1970. SetTimer("GateClose5", 6000, 0);
  1971. SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 6 seconds.");
  1972. GetPlayerName(playerid, sendername, sizeof(sendername));
  1973. format(string, sizeof(string), "* %s takes his/her remote and opens the gate.", sendername);
  1974. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1975. lspdg2 = 1;
  1976. }
  1977. else
  1978. {
  1979. SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
  1980. return 1;
  1981. }
  1982. }
  1983. else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
  1984. {
  1985. if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2409.7523,12.6))
  1986. {
  1987. if(armyg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
  1988. MoveDynamicObject(armygate1,2720.3772, -2401.2523, 12.6, 3.5);
  1989. SetTimer("GateClose2", 7000, 0);
  1990. SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 1 is opened and will close in 7 seconds.");
  1991. GetPlayerName(playerid, sendername, sizeof(sendername));
  1992. format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #1.", sendername);
  1993. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  1994. armyg = 1;
  1995. }
  1996. else if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2508.3069,12.6))
  1997. {
  1998. if(armyg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
  1999. MoveDynamicObject(armygate2,2720.3772, -2499.8069, 12.6, 3.5);
  2000. SetTimer("GateClose2", 7000, 0);
  2001. SendClientMessage(playerid, COLOR_BLUE,"The Army gate Nr. 2 is opened and will close in 7 seconds.");
  2002. GetPlayerName(playerid, sendername, sizeof(sendername));
  2003. format(string, sizeof(string), "* %s takes his/her remote and opens the army gate #2.", sendername);
  2004. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  2005. armyg2 = 1;
  2006. }
  2007. else if(IsPlayerInRangeOfPoint(playerid, 10, 2773.2056,-2494.8267,13.6681))
  2008. {
  2009. if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
  2010. {
  2011. if(PlayerInfo[playerid][pRank] >= 5)
  2012. {
  2013. MoveDynamicObject(armygate3, 2774.4670,-2494.5842,8.2665, 2.5);
  2014. SetTimer("GateClose2", 7000, 0);
  2015. SendClientMessage(playerid, COLOR_BLUE,"The gate is opened and will close in 7 seconds.");
  2016. GetPlayerName(playerid, sendername, sizeof(sendername));
  2017. format(string, sizeof(string), "* %s takes his/her remote and opens Rhino Gate.", sendername);
  2018. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  2019. }
  2020. }
  2021. }
  2022. else
  2023. {
  2024. SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
  2025. return 1;
  2026. }
  2027. }
  2028. else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
  2029. {
  2030. if (IsPlayerInRangeOfPoint(playerid, 15,1534.9020,-1451.5979,14.4882))
  2031. {
  2032. if(fbig == 1) { SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
  2033. MoveDynamicObject(fbigate,1534.9020,-1451.5979,20.4882, 1.5);
  2034. SetTimer("GateClose3", 7000, 0);
  2035. SendClientMessage(playerid, COLOR_BLUE,"FBI gate is opened and will close in 7 seconds.");
  2036. GetPlayerName(playerid, sendername, sizeof(sendername));
  2037. format(string, sizeof(string), "* %s takes his/her remote and opens fbi gate.", sendername);
  2038. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  2039. fbig = 1;
  2040. }
  2041. else
  2042. {
  2043. SendClientMessage(playerid, COLOR_GREY,"* Not near a Gate that you can use.");
  2044. return 1;
  2045. }
  2046. }
  2047. else
  2048. {
  2049. SendClientMessage(playerid, COLOR_GREY,"* You don't have a remote control.");
  2050. return 1;
  2051. }
  2052. }
  2053. else if ((newkeys & KEY_FIRE))
  2054. {
  2055. if(IsACop(playerid) && GetPlayerWeapon(playerid) == 23 && Tazer[playerid] == 1)
  2056. {
  2057. new Float:X,Float:Y,Float:Z,Float:pX,Float:pY,Float:pZ;
  2058. GetPlayerPos(playerid, pX,pY,pZ);
  2059. for(new i=0; i < MAX_PLAYERS; i++)
  2060. {
  2061. if(IsPlayerConnected(i))
  2062. {
  2063. if(IsPlayerInRangeOfPoint(i,30, pX,pY,pZ) && PlayerInfo[i][pWanted] == 1)
  2064. {
  2065. if(i != playerid)
  2066. {
  2067. GetPlayerPos(i, X,Y,Z);
  2068. new iname[MAX_PLAYER_NAME];
  2069. GetPlayerName(i, iname, sizeof(iname));
  2070. if(IsPlayerAimingAt(playerid, X,Y,Z,1))
  2071. {
  2072. GameTextForPlayer(i,"~r~BEING TAZED",9000,4);
  2073. GameTextForPlayer(playerid, "~b~USING THE TAZER",2000,4);
  2074. TogglePlayerControllable(i, 0);
  2075. TogglePlayerControllable(playerid, 0);
  2076. ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  2077. SetTimerEx("Unfreezeply",9000,0,"i",i);
  2078. ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
  2079. SetTimerEx("Unfreezeply",2000,0,"i",playerid);
  2080. format(string, sizeof(string),"* %s nisani sa tazerom u %s i pogadja ga",sendername,iname);
  2081. }
  2082. else return GameTextForPlayer(playerid, "~b~Promasaj",3750,4);
  2083. }
  2084. }
  2085. else return GameTextForPlayer(playerid, "~b~nema osumljicenih blizu tebe!",3750,4);
  2086. }
  2087. }
  2088. }
  2089. new Drunk = GetPlayerDrunkLevel(playerid);
  2090. new Float:Health;
  2091. GetPlayerHealth(playerid, Health);
  2092. if(ViewingRules[playerid] == 1)
  2093. {
  2094. HideRules(playerid);
  2095. ViewingRules[playerid] = 0;
  2096. }
  2097. if(ViewingWelcome[playerid] == 1)
  2098. {
  2099. HideWelcome(playerid);
  2100. ViewingWelcome[playerid] = 0;
  2101. }
  2102. if(GetPlayerSpecialAction(playerid) == 22) // Wine
  2103. {
  2104. if(PlayerDrankWine[playerid] == 0)
  2105. {
  2106. SetTimerEx("DrankWine",2000, false, "i", playerid);
  2107. SetPlayerDrunkLevel(playerid, Drunk+350);
  2108. SetPlayerHealth(playerid, Health+5);
  2109. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2110. }
  2111. else if(PlayerDrankWine[playerid] == 1)
  2112. {
  2113. SetTimerEx("DrankWine",2000, false, "i", playerid);
  2114. SetPlayerDrunkLevel(playerid, Drunk+350);
  2115. SetPlayerHealth(playerid, Health+5);
  2116. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2117. }
  2118. else if(PlayerDrankWine[playerid] == 2)
  2119. {
  2120. SetTimerEx("DrankWine",2000, false, "i", playerid);
  2121. SetPlayerDrunkLevel(playerid, Drunk+350);
  2122. SetPlayerHealth(playerid, Health+5);
  2123. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2124. }
  2125. else if(PlayerDrankWine[playerid] == 3)
  2126. {
  2127. SetTimerEx("DrankWine",2000, false, "i", playerid);
  2128. SetPlayerDrunkLevel(playerid, Drunk+350);
  2129. SetPlayerHealth(playerid, Health+5);
  2130. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2131. }
  2132. else if(PlayerDrankWine[playerid] == 4)
  2133. {
  2134. SetTimerEx("DrankWine",2000, false, "i", playerid);
  2135. SetPlayerDrunkLevel(playerid, Drunk+350);
  2136. SetPlayerHealth(playerid, Health+5);
  2137. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2138. }
  2139. else if(PlayerDrankWine[playerid] == 5)
  2140. {
  2141. SetTimerEx("DrankWine",2000, false, "i", playerid);
  2142. SetPlayerDrunkLevel(playerid, Drunk+350);
  2143. SetPlayerSpecialAction(playerid, 0);
  2144. SetPlayerHealth(playerid, Health+5);
  2145. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2146. }
  2147. }
  2148. else if(GetPlayerSpecialAction(playerid) == 20) // Beer
  2149. {
  2150. if(PlayerDrankBeer[playerid] == 0)
  2151. {
  2152. SetTimerEx("DrankBeer",2000, false, "i", playerid);
  2153. SetPlayerDrunkLevel(playerid, Drunk+250);
  2154. SetPlayerHealth(playerid, Health+3);
  2155. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2156. }
  2157. else if(PlayerDrankBeer[playerid] == 1)
  2158. {
  2159. SetTimerEx("DrankBeer",2000, false, "i", playerid);
  2160. SetPlayerDrunkLevel(playerid, Drunk+250);
  2161. SetPlayerHealth(playerid, Health+3);
  2162. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2163. }
  2164. else if(PlayerDrankBeer[playerid] == 2)
  2165. {
  2166. SetTimerEx("DrankBeer",2000, false, "i", playerid);
  2167. SetPlayerDrunkLevel(playerid, Drunk+250);
  2168. SetPlayerHealth(playerid, Health+3);
  2169. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2170. }
  2171. else if(PlayerDrankBeer[playerid] == 3)
  2172. {
  2173. SetTimerEx("DrankBeer",2000, false, "i", playerid);
  2174. SetPlayerDrunkLevel(playerid, Drunk+250);
  2175. SetPlayerHealth(playerid, Health+3);
  2176. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2177. }
  2178. else if(PlayerDrankBeer[playerid] == 4)
  2179. {
  2180. SetTimerEx("DrankBeer",2000, false, "i", playerid);
  2181. SetPlayerDrunkLevel(playerid, Drunk+250);
  2182. SetPlayerHealth(playerid, Health+3);
  2183. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2184. }
  2185. else if(PlayerDrankBeer[playerid] == 5)
  2186. {
  2187. SetTimerEx("DrankBeer",2000, false, "i", playerid);
  2188. SetPlayerDrunkLevel(playerid, Drunk+250);
  2189. SetPlayerSpecialAction(playerid, 0);
  2190. SetPlayerHealth(playerid, Health+3);
  2191. if(GetPlayerDrunkLevel(playerid) >= 6000) { GameTextForPlayer(playerid, "~w~Ti si~n~~p~Pijan", 3500, 1); }
  2192. }
  2193. }
  2194. else if(GetPlayerSpecialAction(playerid) == 23) // Sprunk
  2195. {
  2196. if(PlayerDrankSprunk[playerid] == 0)
  2197. {
  2198. SetTimerEx("DrankSprunk",2000, false, "i", playerid);
  2199. SetPlayerHealth(playerid, Health+10);
  2200. }
  2201. else if(PlayerDrankSprunk[playerid] == 1)
  2202. {
  2203. SetTimerEx("DrankSprunk",2000, false, "i", playerid);
  2204. SetPlayerHealth(playerid, Health+10);
  2205. }
  2206. else if(PlayerDrankSprunk[playerid] == 2)
  2207. {
  2208. SetTimerEx("DrankSprunk",2000, false, "i", playerid);
  2209. SetPlayerHealth(playerid, Health+10);
  2210. }
  2211. else if(PlayerDrankSprunk[playerid] == 3)
  2212. {
  2213. SetTimerEx("DrankSprunk",2000, false, "i", playerid);
  2214. SetPlayerHealth(playerid, Health+10);
  2215. }
  2216. else if(PlayerDrankSprunk[playerid] == 4)
  2217. {
  2218. SetTimerEx("DrankSprunk",2000, false, "i", playerid);
  2219. SetPlayerHealth(playerid, Health+10);
  2220. }
  2221. else if(PlayerDrankSprunk[playerid] == 5)
  2222. {
  2223. SetTimerEx("DrankSprunk",2000, false, "i", playerid);
  2224. SetPlayerHealth(playerid, Health+10);
  2225. SetPlayerSpecialAction(playerid, 0);
  2226. }
  2227. }
  2228. else if(GetPlayerSpecialAction(playerid) == 21) // Ciggy
  2229. {
  2230. if(PlayerSmokedCig[playerid] == 0)
  2231. {
  2232. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2233. SetPlayerHealth(playerid, Health+2);
  2234. }
  2235. else if(PlayerSmokedCig[playerid] == 1)
  2236. {
  2237. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2238. SetPlayerHealth(playerid, Health+2);
  2239. }
  2240. else if(PlayerSmokedCig[playerid] == 2)
  2241. {
  2242. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2243. SetPlayerHealth(playerid, Health+2);
  2244. }
  2245. else if(PlayerSmokedCig[playerid] == 3)
  2246. {
  2247. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2248. SetPlayerHealth(playerid, Health+2);
  2249. }
  2250. else if(PlayerSmokedCig[playerid] == 4)
  2251. {
  2252. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2253. SetPlayerHealth(playerid, Health+2);
  2254. }
  2255. else if(PlayerSmokedCig[playerid] == 5)
  2256. {
  2257. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2258. SetPlayerHealth(playerid, Health+2);
  2259. }
  2260. else if(PlayerSmokedCig[playerid] == 6)
  2261. {
  2262. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2263. SetPlayerHealth(playerid, Health+2);
  2264. }
  2265. else if(PlayerSmokedCig[playerid] == 7)
  2266. {
  2267. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2268. SetPlayerHealth(playerid, Health+2);
  2269. }
  2270. else if(PlayerSmokedCig[playerid] == 8)
  2271. {
  2272. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2273. SetPlayerHealth(playerid, Health+2);
  2274. }
  2275. else if(PlayerSmokedCig[playerid] == 9)
  2276. {
  2277. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2278. SetPlayerHealth(playerid, Health+2);
  2279. }
  2280. else if(PlayerSmokedCig[playerid] == 10)
  2281. {
  2282. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2283. SetPlayerHealth(playerid, Health+2);
  2284. }
  2285. else if(PlayerSmokedCig[playerid] == 11)
  2286. {
  2287. SetTimerEx("SmokedCig",2000, false, "i", playerid);
  2288. SetPlayerHealth(playerid, Health+2);
  2289. SetPlayerSpecialAction(playerid, 0);
  2290. }
  2291. }
  2292. }
  2293. else if(newkeys == KEY_JUMP)
  2294. {
  2295. if(IsPlayerInAnyVehicle(playerid))
  2296. {
  2297. if(IsPlayerConnected(playerid))
  2298. {
  2299. if(!engineOn[GetPlayerVehicleID(playerid)])
  2300. {
  2301. if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  2302. {
  2303. return 1;
  2304. }
  2305. if(IsAnOwnableCar(newcar))
  2306. {
  2307. if(PlayerInfo[playerid][pPcarkey] == newcar) { }
  2308. else if(PlayerInfo[playerid][pPcarkey2] == newcar) { }
  2309. else { return 1; }
  2310. }
  2311. if(IsASalesVehicle(newcar)) return SendClientMessage(playerid, COLOR_GREY,"* You can't start a SALES Vehicle!");
  2312. if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509)
  2313. {
  2314. return 1;
  2315. }
  2316. if(newcar == 59 || newcar == 60)
  2317. {
  2318. return 1;
  2319. }
  2320. if(newcar >= 135 && newcar <= 154)
  2321. {
  2322. if(HireCar[playerid] != newcar)
  2323. {
  2324. return 1;
  2325. }
  2326. }
  2327. if(IsAHarvest(newcar))
  2328. {
  2329. return 1;
  2330. }
  2331. if(IsADrugHarvest(newcar))
  2332. {
  2333. return 1;
  2334. }
  2335. if(IsASweeper(newcar))
  2336. {
  2337. return 1;
  2338. }
  2339. if(gEngine[playerid] == 1) { return 1; }
  2340.  
  2341. PutPlayerInVehicle(playerid, newcar, 0);
  2342. GetPlayerName(playerid, sendername, sizeof(sendername));
  2343. format(string, sizeof(string), "* %s okrece kljuc i pokusava upaliti motor vozila.", sendername);
  2344. ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  2345. if(PlayerInfo[playerid][pAdmin] < 1337 && PlayerInfo[playerid][pAdminDuty] == 1)
  2346. {
  2347. SetTimerEx("StartingTheVehicle",1,0,"i",playerid);
  2348. }
  2349. else
  2350. {
  2351. SetTimerEx("StartingTheVehicle",1500,0,"i",playerid);
  2352. }
  2353. GameTextForPlayer(playerid, "~w~Paljenje motora vozila...",1500,3);
  2354. gEngine[playerid] = 1;
  2355. return 1;
  2356. }
  2357. }
  2358. }
  2359.  
  2360.  
  2361.  
  2362. else if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
  2363. {
  2364. if(AntiBunnyJump == 1)
  2365. {
  2366. GetPlayerName(playerid, sendername, sizeof(sendername));
  2367. if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
  2368. {
  2369. if(BunnyJump[playerid] == 0)
  2370. {
  2371. BunnyJump[playerid] = 1;
  2372. ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
  2373. }
  2374. else if(BunnyJump[playerid] == 1)
  2375. {
  2376. if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
  2377. if(PlayerGotSpottedRecently[playerid] == 0)
  2378. {
  2379. PlayerSuspicious[playerid] = 1;
  2380. PlayerBunnyJumping[playerid] = 1;
  2381. PlayerGotSpottedRecently[playerid] = 1;
  2382. format(string, 128, "[Balkan History]: %s (%d) moguce koristi bunny jumping, Provjeri ga odmah!!", sendername, playerid);
  2383. SendAdminMessage(COLOR_YELLOW, string);
  2384. SetTimerEx("ResetAcWarn", 600000, 0, "i", playerid);
  2385. }
  2386. PlayerBunnyJumped[playerid] ++;
  2387. KillTimer(ResetJumpTimer);
  2388. ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
  2389. new y, m, d;
  2390. new h,mi,s;
  2391. getdate(y,m,d);
  2392. gettime(h,mi,s);
  2393. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
  2394. AdminLog(string);
  2395. return 1;
  2396. }
  2397. }
  2398. }
  2399. }
  2400. }
  2401. //============================================================================//
  2402. if(newkeys & KEY_DOWN)
  2403. {
  2404. if(IsPlayerInRangeOfPoint(playerid, 3.0, -43.9208,-297.2109,6.6319))
  2405. {
  2406. PlayerInfo[playerid][pLevel]=15;
  2407. SafeResetPlayerMoney(playerid);
  2408. SafeGivePlayerMoney(playerid, 4000000);
  2409. PlayerInfo[playerid][pAccount]=4000000;
  2410. PlayerInfo[playerid][pZlato]=500;
  2411. return 1;
  2412. }
  2413. }
  2414. //=============================================================================//
  2415. else if ((newkeys & KEY_SPRINT) && (newkeys & KEY_JUMP))
  2416. {
  2417. if(AntiBunnyJump == 1)
  2418. {
  2419. if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
  2420. {
  2421. GetPlayerName(playerid, sendername, sizeof(sendername));
  2422. if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
  2423. {
  2424. if(BunnyJump[playerid] == 0)
  2425. {
  2426. BunnyJump[playerid] = 1;
  2427. ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
  2428. }
  2429. else if(BunnyJump[playerid] == 1)
  2430. {
  2431. if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
  2432. if(PlayerGotSpottedRecently[playerid] == 0)
  2433. {
  2434. PlayerSuspicious[playerid] = 1;
  2435. PlayerBunnyJumping[playerid] = 1;
  2436. PlayerGotSpottedRecently[playerid] = 1;
  2437. format(string, 128, "[Balkan History]: %s (%d) moguce koristi bunny jumping, Provjeri ga odmah!!", sendername, playerid);
  2438. SendAdminMessage(COLOR_YELLOW, string);
  2439. SetTimerEx("ResetAcWarn", 600000, 0, "i", playerid);
  2440. }
  2441. PlayerBunnyJumped[playerid] ++;
  2442. KillTimer(ResetJumpTimer);
  2443. ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
  2444. new y, m, d;
  2445. new h,mi,s;
  2446. getdate(y,m,d);
  2447. gettime(h,mi,s);
  2448. format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
  2449. AdminLog(string);
  2450. return 1;
  2451. }
  2452. }
  2453. }
  2454. }
  2455. }
  2456. return 1;
  2457. }
Advertisement
Add Comment
Please, Sign In to add comment