Guest User

Untitled

a guest
Dec 7th, 2014
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.99 KB | None | 0 0
  1. CMD:equipar(playerid){
  2. // new cargo = PlayerDados[playerid][pCargo];
  3. if(!LocalEquipar(playerid)) return SendClientMessage(playerid,0xAFAFAFAA,"ERRO: Você não está no Local de Equipar!");
  4. /* if(PlayerInfo[playerid][pJailed] != 0)
  5. {
  6. SendClientMessage(playerid,COLOR_GREY," Você não pode equipar na cadeia!");
  7. return 1;
  8. }
  9. if(!LocalEquipar(playerid)) return SendClientMessage(playerid,COLOR_GREY,"ERRO: Você não está no Local de Equipar!");
  10. if (IsACop(playerid))
  11. {
  12. ResetPlayerWeapons(playerid);
  13. SetPlayerArmour(playerid, 100);
  14. SetPlayerHealth(playerid, 100);
  15. Taser[ playerid ] = false;
  16. BulletTaser[ playerid ] = 5;
  17. if(cargo == 1)
  18. {
  19. GivePlayerWeapon(playerid, 24, 150);
  20. GivePlayerWeapon(playerid, 25, 100);
  21. GivePlayerWeapon(playerid, 31, 250);
  22. GivePlayerWeapon(playerid, 17, 3);
  23. GivePlayerWeapon(playerid, 4, 1);
  24. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
  25. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  26. }
  27. if(cargo == 2)
  28. {
  29. GivePlayerWeapon(playerid, 24, 200);
  30. GivePlayerWeapon(playerid, 25, 150);
  31. GivePlayerWeapon(playerid, 31, 300);
  32. GivePlayerWeapon(playerid, 17, 5);
  33. GivePlayerWeapon(playerid, 4, 1);
  34. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
  35. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  36. }
  37. if(cargo == 3)
  38. {
  39. GivePlayerWeapon(playerid, 24, 250);
  40. GivePlayerWeapon(playerid, 25, 200);
  41. GivePlayerWeapon(playerid, 31, 350);
  42. GivePlayerWeapon(playerid, 17, 7);
  43. GivePlayerWeapon(playerid, 4, 1);
  44. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
  45. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  46. }
  47. if(cargo == 4)
  48. {
  49. GivePlayerWeapon(playerid, 24, 300);
  50. GivePlayerWeapon(playerid, 25, 250);
  51. GivePlayerWeapon(playerid, 31, 400);
  52. GivePlayerWeapon(playerid, 17, 10);
  53. GivePlayerWeapon(playerid, 4, 1);
  54. GivePlayerWeapon(playerid, 34, 30);
  55. format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
  56. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  57. }
  58. if(cargo == 5)
  59. {
  60. GivePlayerWeapon(playerid, 24, 400);
  61. GivePlayerWeapon(playerid, 25, 300);
  62. GivePlayerWeapon(playerid, 31, 450);
  63. GivePlayerWeapon(playerid, 17, 12);
  64. GivePlayerWeapon(playerid, 4, 1);
  65. GivePlayerWeapon(playerid, 34, 60);
  66. format(string, sizeof(string), "* Policial %s pega seus equipamentos de Sub-Líder.", PlayerName(playerid));
  67. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  68. }
  69. if(cargo == 6)
  70. {
  71. GivePlayerWeapon(playerid, 24, 500);
  72. GivePlayerWeapon(playerid, 25, 350);
  73. GivePlayerWeapon(playerid, 31, 500);
  74. GivePlayerWeapon(playerid, 17, 15);
  75. GivePlayerWeapon(playerid, 4, 1);
  76. GivePlayerWeapon(playerid, 34, 100);
  77. format(string, sizeof(string), "* Policial %s pega seus equipamentos de Líder.", PlayerName(playerid));
  78. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  79. }
  80. return true;
  81. } */
  82. if(IsAGang(playerid))
  83. {
  84. if(PlayerDados[playerid][pLider] >= 1)
  85. {
  86. SetPlayerArmour(playerid, 100.0);
  87. SetPlayerHealth(playerid, 100.0);
  88. GivePlayerWeapon(playerid, 4, 1);
  89. GivePlayerWeapon(playerid, 24, 800);
  90. GivePlayerWeapon(playerid, 25, 400);
  91. GivePlayerWeapon(playerid, 31, 600);
  92. GivePlayerWeapon(playerid, 34, 50);
  93. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: Líder.");
  94. format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
  95. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  96. return 1;
  97. }
  98. else if(PlayerDados[playerid][pCargo] <= 1)
  99. {
  100. SetPlayerArmour(playerid, 100.0);
  101. SetPlayerHealth(playerid, 100.0);
  102. GivePlayerWeapon(playerid, 4, 1);
  103. GivePlayerWeapon(playerid, 24, 800);
  104. GivePlayerWeapon(playerid, 25, 400);
  105. GivePlayerWeapon(playerid, 31, 600);
  106. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 1.");
  107. format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
  108. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  109. return 1;
  110. }
  111. else if(PlayerDados[playerid][pCargo] == 2)
  112. {
  113. SetPlayerArmour(playerid, 100.0);
  114. SetPlayerHealth(playerid, 100.0);
  115. GivePlayerWeapon(playerid, 4, 1);
  116. GivePlayerWeapon(playerid, 24, 800);
  117. GivePlayerWeapon(playerid, 25, 400);
  118. GivePlayerWeapon(playerid, 31, 600);
  119. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 2.");
  120. format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
  121. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  122. return 1;
  123. }
  124. else if(PlayerDados[playerid][pCargo] == 3)
  125. {
  126. SetPlayerArmour(playerid, 100.0);
  127. SetPlayerHealth(playerid, 100.0);
  128. GivePlayerWeapon(playerid, 4, 1);
  129. GivePlayerWeapon(playerid, 24, 800);
  130. GivePlayerWeapon(playerid, 25, 400);
  131. GivePlayerWeapon(playerid, 31, 600);
  132. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 3.");
  133. format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
  134. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  135. return 1;
  136. }
  137. else if(PlayerDados[playerid][pCargo] == 4)
  138. {
  139. SetPlayerArmour(playerid, 100.0);
  140. SetPlayerHealth(playerid, 100.0);
  141. GivePlayerWeapon(playerid, 4, 1);
  142. GivePlayerWeapon(playerid, 24, 800);
  143. GivePlayerWeapon(playerid, 25, 400);
  144. GivePlayerWeapon(playerid, 31, 600);
  145. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 4.");
  146. format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
  147. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  148. return 1;
  149. }
  150. else if(PlayerDados[playerid][pCargo] == 5)
  151. {
  152. SetPlayerArmour(playerid, 100.0);
  153. SetPlayerHealth(playerid, 100.0);
  154. GivePlayerWeapon(playerid, 4, 1);
  155. GivePlayerWeapon(playerid, 24, 800);
  156. GivePlayerWeapon(playerid, 25, 400);
  157. GivePlayerWeapon(playerid, 31, 600);
  158. GivePlayerWeapon(playerid, 34, 50);
  159. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 5.");
  160. format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
  161. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  162. }
  163. return true;
  164. }
  165. if (GetPlayerOrg(playerid) == 9)
  166. {
  167. SetPlayerArmour(playerid, 100);
  168. SetPlayerHealth(playerid, 100);
  169. GivePlayerWeapon(playerid, 43, 50);
  170. SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos.");
  171. format(String, sizeof(String), "* O Reporter %s pegou seus equipamentos.", PlayerName(playerid));
  172. ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  173. return 1;
  174. }
  175. else
  176. {
  177. SendClientMessage(playerid, 0xAFAFAFAA, "Você não possui esse comando.");
  178. return 1;
  179. }
  180. }
  181.  
  182. //========================================================================\\
  183. CallBack:: LocalEquipar(playerid)
  184. {
  185. if(GetPlayerOrg(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1530.192504,-1664.163818,6.218750)) return true;// Polícia Militar
  186. if(GetPlayerOrg(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3, playerid,229.734130,164.912231,1003.023437)) return true;// BOPE
  187. if(GetPlayerOrg(playerid) == 3 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-1345.844116,492.493896,11.202690)) return true;// Exército
  188. if(GetPlayerOrg(playerid) == 5 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1679.952758,-2119.342285,13.546875)) return true;// Los Aztecas
  189. if(GetPlayerOrg(playerid) == 6 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-2237.558837,2353.743408,4.980449)) return true;// TALIBAN
  190. if(GetPlayerOrg(playerid) == 7 && IsPlayerInRangeOfPoint(playerid, 3, playerid,355.204986,169.194015,1025.789062)) return true;// GOVERNO
  191. if(GetPlayerOrg(playerid) == 8 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1073.134887,-345.133392,73.992187)) return true;// Hitmans
  192. if(GetPlayerOrg(playerid) == 9 && IsPlayerInRangeOfPoint(playerid, 3, playerid,273.0112,1704.1206,-10.5221)) return true; // Reporteres JÁ SETEI BY DEREK
  193. if(GetPlayerOrg(playerid) == 11 && IsPlayerInRangeOfPoint(playerid, 3, playerid,229.711013,165.000732,1003.023437)) return true;// P.FEDERAL
  194. if(GetPlayerOrg(playerid) == 12 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1616.032958,1687.587524,11.218446)) return true;// C.NOSTRA
  195. if(GetPlayerOrg(playerid) == 13 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2626.962158,1815.546020,11.023437)) return true;// Yakuza
  196. if(GetPlayerOrg(playerid) == 14 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2510.500976,-1672.311523,13.425003)) return true;// Groove Street
  197. if(GetPlayerOrg(playerid) == 15 && IsPlayerInRangeOfPoint(playerid, 3, playerid,414.725463,2531.359130,19.167875)) return true;// AL'QAEDA
  198. if(GetPlayerOrg(playerid) == 16 && IsPlayerInRangeOfPoint(playerid, 3, playerid,229.795776,165.021392,1003.023437)) return true;// P.CIVIL
  199. if(GetPlayerOrg(playerid) == 17 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1137.900634,-1196.093872,32.027549)) return true;// Ballas
  200. if(GetPlayerOrg(playerid) == 18 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2815.815917,-1178.537475,25.269187)) return true;// Los Vagos
  201. if(GetPlayerOrg(playerid) == 19 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2155.252441,-1810.334838,13.549571)) return true;// Comando Verme
  202. if(GetPlayerOrg(playerid) == 20 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1304.855957,-860.100219,39.578125)) return true;// PCC
  203. if(GetPlayerOrg(playerid) == 21 && IsPlayerInRangeOfPoint(playerid, 3, playerid,506.578247,-80.521987,998.960937)) return true;// Sons Of Anarch
  204. if(GetPlayerOrg(playerid) == 22 && IsPlayerInRangeOfPoint(playerid, 3, playerid,23.415683,-2654.846923,40.507911)) return true;// MAYANS
  205. if(GetPlayerOrg(playerid) == 23 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-220.617767,1405.519165,27.765625)) return true;// INTERPOL
  206. if(GetPlayerOrg(playerid) == 24 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2743.299560,-2454.479492,13.862256)) return true;// MECANICOS
  207. if(GetPlayerOrg(playerid) == 25 && IsPlayerInRangeOfPoint(playerid, 3, playerid,846.190917,-2037.009521,12.867187)) return true;// ROTA
  208. if(GetPlayerOrg(playerid) == 26 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2079.4207,-1574.9639,14.9043)) return true;// MARINHA
  209. if(GetPlayerOrg(playerid) == 27 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-74.329750,-1738.409912,10.854687)) return true;// DETRAN
  210. if(GetPlayerOrg(playerid) == 28 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1391.582885,-1622.954101,13.546875)) return true;// BOMBEIROS
  211. if(GetPlayerOrg(playerid) == 29 && IsPlayerInRangeOfPoint(playerid, 3, playerid,761.278076,1440.112792,1102.703125)) return true;// AERONAUTICA
  212. if(GetPlayerOrg(playerid) == 30 && IsPlayerInRangeOfPoint(playerid, 3, playerid,945.796508,2.059014,1000.929687)) return true;// M.RUSSA
  213. if(GetPlayerOrg(playerid) == 31 && IsPlayerInRangeOfPoint(playerid, 3, playerid,273.773071,-2164.707031,2.797812)) return true;// PIRATAS
  214. if(GetPlayerOrg(playerid) == 32 && IsPlayerInRangeOfPoint(playerid, 3, playerid,234.261611,111.291336,1003.225708)) return true;// KAMIKAZES
  215. //if(IsAEnforcerCar(GetPlayerVehicleID(playerid)) && IsACop(playerid)) return true; // caveirão
  216. return false;
  217. }
Advertisement
Add Comment
Please, Sign In to add comment