Guest User

Untitled

a guest
Jan 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.68 KB | None | 0 0
  1. if(strcmp(cmd, "/equipar", true) == 0)
  2. {
  3. if(PlayerInfo[playerid][pJailed] != 0)
  4. {
  5. SendClientMessage(playerid,COLOR_GREY," Você não pode equipar na cadeia!");
  6. return 1;
  7. }
  8. if (IsACop(playerid))
  9. {
  10. new tmpcar = GetPlayerVehicleID(playerid);
  11. GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
  12. if(IsAEnforcerCar(tmpcar)||PlayerToPoint(2, playerid,255.3,77.4,1003.6) || PlayerToPoint(2,playerid,-1616.1294,681.1594,7.1875) || PlayerToPoint(2,playerid,230.1107,165.2237,1003.0234) || PlayerToPoint(2, playerid,240.7396,112.9709,1003.2188) || PlayerToPoint(2, playerid,1530.5187,-1702.5320,6.2252) || PlayerToPoint(2, playerid,302.7606,-1529.7537,24.9219) || PlayerToPoint(2, playerid,-1345.8823,492.5301,11.2027)
  13. || PlayerToPoint(2, playerid,326.4911,307.0710,999.1484) || PlayerToPoint(2, playerid,913.1017,-1235.3335,17.2109) || PlayerToPoint(2, playerid,1080.5125,-1748.9736,13.7097) || HouseEntered[playerid] != 255)
  14. {
  15. ResetPlayerWeaponsEx(playerid);
  16. SetPlayerArmour(playerid, 100.0);
  17. SetPlayerHealth(playerid, 100.0);
  18. if (PlayerInfo[playerid][pLider] == 1)
  19. {
  20. format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos de líder.", sendername);
  21. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  22. ResetPlayerWeaponsEx(playerid);
  23. GivePlayerWeapon(playerid, 25, 500);
  24. GivePlayerWeapon(playerid, 24, 500);
  25. GivePlayerWeapon(playerid, 3, 0);
  26. GivePlayerWeapon(playerid, 31, 300);
  27. GivePlayerWeapon(playerid, 29, 300);
  28. GivePlayerWeapon(playerid, 16, 2);
  29. GivePlayerWeapon(playerid, 34, 100);
  30. return 1;
  31. }
  32. if(PlayerInfo[playerid][pLider] == 2)
  33. {
  34. format(string, sizeof(string), "* Policial %s pega seus equipamentos de líder.", sendername);
  35. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  36. ResetPlayerWeaponsEx(playerid);
  37. GivePlayerWeapon(playerid, 25, 500);
  38. GivePlayerWeapon(playerid, 24, 500);
  39. GivePlayerWeapon(playerid, 3, 0);
  40. GivePlayerWeapon(playerid, 31, 600);
  41. GivePlayerWeapon(playerid, 29, 600);
  42. GivePlayerWeapon(playerid, 16, 2);
  43. GivePlayerWeapon(playerid, 34, 100);
  44. return 1;
  45. }
  46. if(PlayerInfo[playerid][pLider] == 3)
  47. {
  48. format(string, sizeof(string), "* Exército %s pega seus equipamentos de líder.", sendername);
  49. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  50. ResetPlayerWeaponsEx(playerid);
  51. GivePlayerWeapon(playerid, 25, 500);
  52. GivePlayerWeapon(playerid, 24, 500);
  53. GivePlayerWeapon(playerid, 3, 0);
  54. GivePlayerWeapon(playerid, 31, 600);
  55. GivePlayerWeapon(playerid, 29, 600);
  56. GivePlayerWeapon(playerid, 16, 2);
  57. GivePlayerWeapon(playerid, 34, 100);
  58. return 1;
  59. }
  60. if (PlayerInfo[playerid][pLider] == 16)
  61. {
  62. format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos de líder.", sendername);
  63. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  64. ResetPlayerWeaponsEx(playerid);
  65. GivePlayerWeapon(playerid, 25, 500);
  66. GivePlayerWeapon(playerid, 24, 500);
  67. GivePlayerWeapon(playerid, 3, 0);
  68. GivePlayerWeapon(playerid, 31, 600);
  69. GivePlayerWeapon(playerid, 29, 600);
  70. GivePlayerWeapon(playerid, 41, 600);
  71. GivePlayerWeapon(playerid, 16, 2);
  72. GivePlayerWeapon(playerid, 34, 100);
  73. return 1;
  74. }
  75. if(PlayerInfo[playerid][pLider] == 11)
  76. {
  77. format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos de líder.", sendername);
  78. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  79. ResetPlayerWeaponsEx(playerid);
  80. GivePlayerWeapon(playerid, 25, 500);
  81. GivePlayerWeapon(playerid, 24, 500);
  82. GivePlayerWeapon(playerid, 3, 0);
  83. GivePlayerWeapon(playerid, 31, 600);
  84. GivePlayerWeapon(playerid, 29, 600);
  85. GivePlayerWeapon(playerid, 41, 600);
  86. GivePlayerWeapon(playerid, 16, 2);
  87. GivePlayerWeapon(playerid, 34, 100);
  88. return 1;
  89. }
  90. if (PlayerInfo[playerid][pMembro] == 1) // Policia Militar
  91. {
  92. if (PlayerInfo[playerid][pCargo] == 1)
  93. {
  94. format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
  95. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  96. ResetPlayerWeaponsEx(playerid);
  97. GivePlayerWeapon(playerid, 25, 80);
  98. GivePlayerWeapon(playerid, 24, 80);
  99. GivePlayerWeapon(playerid, 3, 0);
  100. GivePlayerWeapon(playerid, 31, 300);
  101. GivePlayerWeapon(playerid, 29, 300);
  102. GivePlayerWeapon(playerid, 41, 300);
  103. GivePlayerWeapon(playerid, 16, 2);
  104. return 1;
  105. }
  106. if (PlayerInfo[playerid][pCargo] == 2)
  107. {
  108. format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
  109. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  110. ResetPlayerWeaponsEx(playerid);
  111. GivePlayerWeapon(playerid, 25, 80);
  112. GivePlayerWeapon(playerid, 24, 150);
  113. GivePlayerWeapon(playerid, 3, 0);
  114. GivePlayerWeapon(playerid, 29, 300);
  115. GivePlayerWeapon(playerid, 31, 300);
  116. GivePlayerWeapon(playerid, 41, 300);
  117. GivePlayerWeapon(playerid, 16, 2);
  118. return 1;
  119. }
  120. if (PlayerInfo[playerid][pCargo] == 3)
  121. {
  122. format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
  123. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  124. ResetPlayerWeaponsEx(playerid);
  125. GivePlayerWeapon(playerid, 25, 190);
  126. GivePlayerWeapon(playerid, 24, 150);
  127. GivePlayerWeapon(playerid, 29, 450);
  128. GivePlayerWeapon(playerid, 31, 550);
  129. GivePlayerWeapon(playerid, 41, 300);
  130. GivePlayerWeapon(playerid, 16, 2);
  131. GivePlayerWeapon(playerid, 3, 0);
  132. return 1;
  133. }
  134. if (PlayerInfo[playerid][pCargo] == 4)
  135. {
  136. format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
  137. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  138. ResetPlayerWeaponsEx(playerid);
  139. GivePlayerWeapon(playerid, 25, 120);
  140. GivePlayerWeapon(playerid, 24, 360);
  141. GivePlayerWeapon(playerid, 29, 490);
  142. GivePlayerWeapon(playerid, 3, 0);
  143. GivePlayerWeapon(playerid, 31, 400);
  144. GivePlayerWeapon(playerid, 34, 50);
  145. GivePlayerWeapon(playerid, 16, 2);
  146. GivePlayerWeapon(playerid, 41, 400);
  147. return 1;
  148. }
  149. if (PlayerInfo[playerid][pCargo] == 5)
  150. {
  151. format(string, sizeof(string), "* Policial Militar %s pega seus equipamentos.", sendername);
  152. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  153. ResetPlayerWeaponsEx(playerid);
  154. GivePlayerWeapon(playerid, 25, 140);
  155. GivePlayerWeapon(playerid, 24, 170);
  156. GivePlayerWeapon(playerid, 29, 510);
  157. GivePlayerWeapon(playerid, 31, 550);
  158. GivePlayerWeapon(playerid, 34, 80);
  159. GivePlayerWeapon(playerid, 16, 2);
  160. GivePlayerWeapon(playerid, 41, 500);
  161. GivePlayerWeapon(playerid, 3, 0);
  162. return 1;
  163. }
  164. }
  165. if(PlayerInfo[playerid][pMembro] == 2)//B.O.P.E
  166. {
  167. if(PlayerInfo[playerid][pCargo] == 1)
  168. {
  169. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
  170. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  171. ResetPlayerWeaponsEx(playerid);
  172. GivePlayerWeapon(playerid, 25, 80);
  173. GivePlayerWeapon(playerid, 24, 80);
  174. GivePlayerWeapon(playerid, 3, 0);
  175. GivePlayerWeapon(playerid, 31, 300);
  176. GivePlayerWeapon(playerid, 29, 300);
  177. GivePlayerWeapon(playerid, 41, 300);
  178. GivePlayerWeapon(playerid, 16, 2);
  179. return 1;
  180. }
  181. if(PlayerInfo[playerid][pCargo] == 2)
  182. {
  183. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
  184. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  185. ResetPlayerWeaponsEx(playerid);
  186. GivePlayerWeapon(playerid, 25, 80);
  187. GivePlayerWeapon(playerid, 24, 150);
  188. GivePlayerWeapon(playerid, 3, 0);
  189. GivePlayerWeapon(playerid, 29, 300);
  190. GivePlayerWeapon(playerid, 31, 300);
  191. GivePlayerWeapon(playerid, 41, 300);
  192. GivePlayerWeapon(playerid, 16, 2);
  193. return 1;
  194. }
  195. if(PlayerInfo[playerid][pCargo] == 3)
  196. {
  197. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
  198. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  199. ResetPlayerWeaponsEx(playerid);
  200. GivePlayerWeapon(playerid, 25, 190);
  201. GivePlayerWeapon(playerid, 24, 150);
  202. GivePlayerWeapon(playerid, 29, 450);
  203. GivePlayerWeapon(playerid, 31, 550);
  204. GivePlayerWeapon(playerid, 41, 300);
  205. GivePlayerWeapon(playerid, 16, 2);
  206. GivePlayerWeapon(playerid, 3, 0);
  207. return 1;
  208. }
  209. if(PlayerInfo[playerid][pCargo] == 4)
  210. {
  211. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
  212. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  213. ResetPlayerWeaponsEx(playerid);
  214. GivePlayerWeapon(playerid, 25, 120);
  215. GivePlayerWeapon(playerid, 24, 360);
  216. GivePlayerWeapon(playerid, 29, 490);
  217. GivePlayerWeapon(playerid, 3, 0);
  218. GivePlayerWeapon(playerid, 31, 400);
  219. GivePlayerWeapon(playerid, 34, 50);
  220. GivePlayerWeapon(playerid, 16, 2);
  221. GivePlayerWeapon(playerid, 41, 300);
  222. return 1;
  223. }
  224. if(PlayerInfo[playerid][pCargo] == 5)
  225. {
  226. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", sendername);
  227. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  228. ResetPlayerWeaponsEx(playerid);
  229. GivePlayerWeapon(playerid, 25, 140);
  230. GivePlayerWeapon(playerid, 24, 170);
  231. GivePlayerWeapon(playerid, 29, 510);
  232. GivePlayerWeapon(playerid, 31, 550);
  233. GivePlayerWeapon(playerid, 34, 80);
  234. GivePlayerWeapon(playerid, 16, 2);
  235. GivePlayerWeapon(playerid, 41, 400);
  236. GivePlayerWeapon(playerid, 3, 0);
  237. return 1;
  238. }
  239. }
  240. if(PlayerInfo[playerid][pMembro] == 11)//PF
  241. {
  242. if(PlayerInfo[playerid][pCargo] == 1)
  243. {
  244. format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
  245. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  246. ResetPlayerWeaponsEx(playerid);
  247. GivePlayerWeapon(playerid, 25, 80);
  248. GivePlayerWeapon(playerid, 24, 80);
  249. GivePlayerWeapon(playerid, 3, 0);
  250. GivePlayerWeapon(playerid, 31, 300);
  251. GivePlayerWeapon(playerid, 29, 300);
  252. GivePlayerWeapon(playerid, 41, 300);
  253. GivePlayerWeapon(playerid, 16, 2);
  254. return 1;
  255. }
  256. if(PlayerInfo[playerid][pCargo] == 2)
  257. {
  258. format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
  259. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  260. ResetPlayerWeaponsEx(playerid);
  261. GivePlayerWeapon(playerid, 25, 80);
  262. GivePlayerWeapon(playerid, 24, 150);
  263. GivePlayerWeapon(playerid, 3, 0);
  264. GivePlayerWeapon(playerid, 29, 400);
  265. GivePlayerWeapon(playerid, 31, 400);
  266. GivePlayerWeapon(playerid, 41, 300);
  267. GivePlayerWeapon(playerid, 16, 2);
  268. return 1;
  269. }
  270. if(PlayerInfo[playerid][pCargo] == 3)
  271. {
  272. format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
  273. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  274. ResetPlayerWeaponsEx(playerid);
  275. GivePlayerWeapon(playerid, 25, 190);
  276. GivePlayerWeapon(playerid, 24, 150);
  277. GivePlayerWeapon(playerid, 29, 450);
  278. GivePlayerWeapon(playerid, 31, 550);
  279. GivePlayerWeapon(playerid, 41, 300);
  280. GivePlayerWeapon(playerid, 16, 2);
  281. GivePlayerWeapon(playerid, 3, 0);
  282. return 1;
  283. }
  284. if(PlayerInfo[playerid][pCargo] == 4)
  285. {
  286. format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
  287. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  288. ResetPlayerWeaponsEx(playerid);
  289. GivePlayerWeapon(playerid, 25, 120);
  290. GivePlayerWeapon(playerid, 24, 360);
  291. GivePlayerWeapon(playerid, 29, 490);
  292. GivePlayerWeapon(playerid, 3, 0);
  293. GivePlayerWeapon(playerid, 31, 400);
  294. GivePlayerWeapon(playerid, 34, 50);
  295. GivePlayerWeapon(playerid, 16, 2);
  296. GivePlayerWeapon(playerid, 41, 300);
  297. return 1;
  298. }
  299. if(PlayerInfo[playerid][pCargo] == 5)
  300. {
  301. format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos.", sendername);
  302. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  303. ResetPlayerWeaponsEx(playerid);
  304. GivePlayerWeapon(playerid, 25, 140);
  305. GivePlayerWeapon(playerid, 24, 170);
  306. GivePlayerWeapon(playerid, 29, 510);
  307. GivePlayerWeapon(playerid, 31, 550);
  308. GivePlayerWeapon(playerid, 34, 80);
  309. GivePlayerWeapon(playerid, 16, 2);
  310. GivePlayerWeapon(playerid, 41, 300);
  311. GivePlayerWeapon(playerid, 3, 0);
  312. return 1;
  313. }
  314. }
  315. if(PlayerInfo[playerid][pMembro] == 3)//Exército
  316. {
  317. if(PlayerInfo[playerid][pCargo] == 1)
  318. {
  319. format(string, sizeof(string), "* Exército %s pega seus equipamentos.", sendername);
  320. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  321. ResetPlayerWeaponsEx(playerid);
  322. GivePlayerWeapon(playerid, 25, 80);
  323. GivePlayerWeapon(playerid, 24, 80);
  324. GivePlayerWeapon(playerid, 3, 0);
  325. GivePlayerWeapon(playerid, 31, 300);
  326. GivePlayerWeapon(playerid, 29, 300);
  327. GivePlayerWeapon(playerid, 41, 300);
  328. GivePlayerWeapon(playerid, 16, 2);
  329. return 1;
  330. }
  331. if(PlayerInfo[playerid][pCargo] == 2)
  332. {
  333. format(string, sizeof(string), "* Exército %s pega seus equipamentos.", sendername);
  334. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  335. ResetPlayerWeaponsEx(playerid);
  336. GivePlayerWeapon(playerid, 25, 80);
  337. GivePlayerWeapon(playerid, 24, 150);
  338. GivePlayerWeapon(playerid, 3, 0);
  339. GivePlayerWeapon(playerid, 29, 300);
  340. GivePlayerWeapon(playerid, 31, 400);
  341. GivePlayerWeapon(playerid, 41, 300);
  342. GivePlayerWeapon(playerid, 16, 2);
  343. return 1;
  344. }
  345. if(PlayerInfo[playerid][pCargo] == 3)
  346. {
  347. format(string, sizeof(string), "* Exército %s pega seus equipamentos.", sendername);
  348. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  349. ResetPlayerWeaponsEx(playerid);
  350. GivePlayerWeapon(playerid, 25, 190);
  351. GivePlayerWeapon(playerid, 24, 150);
  352. GivePlayerWeapon(playerid, 29, 450);
  353. GivePlayerWeapon(playerid, 31, 550);
  354. GivePlayerWeapon(playerid, 41, 300);
  355. GivePlayerWeapon(playerid, 16, 2);
  356. GivePlayerWeapon(playerid, 3, 0);
  357. return 1;
  358. }
  359. if(PlayerInfo[playerid][pCargo] == 4)
  360. {
  361. format(string, sizeof(string), "* Exército %s pega seus equipamentos.", sendername);
  362. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  363. ResetPlayerWeaponsEx(playerid);
  364. GivePlayerWeapon(playerid, 25, 120);
  365. GivePlayerWeapon(playerid, 24, 360);
  366. GivePlayerWeapon(playerid, 29, 490);
  367. GivePlayerWeapon(playerid, 3, 0);
  368. GivePlayerWeapon(playerid, 31, 400);
  369. GivePlayerWeapon(playerid, 34, 50);
  370. GivePlayerWeapon(playerid, 16, 2);
  371. GivePlayerWeapon(playerid, 41, 300);
  372. return 1;
  373. }
  374. if(PlayerInfo[playerid][pCargo] == 5)
  375. {
  376. format(string, sizeof(string), "* Exército %s pega seus equipamentos.", sendername);
  377. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  378. ResetPlayerWeaponsEx(playerid);
  379. GivePlayerWeapon(playerid, 25, 140);
  380. GivePlayerWeapon(playerid, 24, 170);
  381. GivePlayerWeapon(playerid, 29, 510);
  382. GivePlayerWeapon(playerid, 31, 550);
  383. GivePlayerWeapon(playerid, 34, 80);
  384. GivePlayerWeapon(playerid, 16, 2);
  385. GivePlayerWeapon(playerid, 41, 300);
  386. GivePlayerWeapon(playerid, 3, 0);
  387. return 1;
  388. }
  389. }
  390. if(PlayerInfo[playerid][pMembro] == 16)// Policia Civil
  391. {
  392. if (PlayerInfo[playerid][pCargo] == 1)
  393. {
  394. format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
  395. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  396. ResetPlayerWeaponsEx(playerid);
  397. GivePlayerWeapon(playerid, 25, 80);
  398. GivePlayerWeapon(playerid, 24, 80);
  399. GivePlayerWeapon(playerid, 3, 0);
  400. GivePlayerWeapon(playerid, 31, 300);
  401. GivePlayerWeapon(playerid, 29, 300);
  402. GivePlayerWeapon(playerid, 41, 300);
  403. GivePlayerWeapon(playerid, 16, 2);
  404. return 1;
  405. }
  406. if (PlayerInfo[playerid][pCargo] == 2)
  407. {
  408. format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
  409. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  410. ResetPlayerWeaponsEx(playerid);
  411. GivePlayerWeapon(playerid, 25, 80);
  412. GivePlayerWeapon(playerid, 24, 150);
  413. GivePlayerWeapon(playerid, 3, 0);
  414. GivePlayerWeapon(playerid, 29, 400);
  415. GivePlayerWeapon(playerid, 31, 400);
  416. GivePlayerWeapon(playerid, 41, 400);
  417. GivePlayerWeapon(playerid, 16, 2);
  418. return 1;
  419. }
  420. if (PlayerInfo[playerid][pCargo] == 3)
  421. {
  422. format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
  423. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  424. ResetPlayerWeaponsEx(playerid);
  425. GivePlayerWeapon(playerid, 25, 190);
  426. GivePlayerWeapon(playerid, 24, 150);
  427. GivePlayerWeapon(playerid, 29, 450);
  428. GivePlayerWeapon(playerid, 31, 450);
  429. GivePlayerWeapon(playerid, 41, 400);
  430. GivePlayerWeapon(playerid, 16, 2);
  431. GivePlayerWeapon(playerid, 3, 0);
  432. return 1;
  433. }
  434. if (PlayerInfo[playerid][pCargo] == 4)
  435. {
  436. format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
  437. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  438. ResetPlayerWeaponsEx(playerid);
  439. GivePlayerWeapon(playerid, 25, 120);
  440. GivePlayerWeapon(playerid, 24, 360);
  441. GivePlayerWeapon(playerid, 29, 500);
  442. GivePlayerWeapon(playerid, 3, 0);
  443. GivePlayerWeapon(playerid, 31, 500);
  444. GivePlayerWeapon(playerid, 34, 50);
  445. GivePlayerWeapon(playerid, 16, 2);
  446. GivePlayerWeapon(playerid, 41, 200);
  447. GivePlayerWeapon(playerid, 34, 200);
  448. return 1;
  449. }
  450. if (PlayerInfo[playerid][pCargo] == 5)
  451. {
  452. format(string, sizeof(string), "* Policial Civil %s pega seus equipamentos.", sendername);
  453. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  454. ResetPlayerWeaponsEx(playerid);
  455. GivePlayerWeapon(playerid, 25, 140);
  456. GivePlayerWeapon(playerid, 24, 170);
  457. GivePlayerWeapon(playerid, 29, 550);
  458. GivePlayerWeapon(playerid, 31, 550);
  459. GivePlayerWeapon(playerid, 34, 80);
  460. GivePlayerWeapon(playerid, 16, 2);
  461. GivePlayerWeapon(playerid, 41, 400);
  462. GivePlayerWeapon(playerid, 34, 400);
  463. GivePlayerWeapon(playerid, 3, 0);
  464. return 1;
  465. }
  466. }
  467. }
  468. }
Add Comment
Please, Sign In to add comment