Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:equipar(playerid){
- // new cargo = PlayerDados[playerid][pCargo];
- if(!LocalEquipar(playerid)) return SendClientMessage(playerid,0xAFAFAFAA,"ERRO: Você não está no Local de Equipar!");
- /* if(PlayerInfo[playerid][pJailed] != 0)
- {
- SendClientMessage(playerid,COLOR_GREY," Você não pode equipar na cadeia!");
- return 1;
- }
- if(!LocalEquipar(playerid)) return SendClientMessage(playerid,COLOR_GREY,"ERRO: Você não está no Local de Equipar!");
- if (IsACop(playerid))
- {
- ResetPlayerWeapons(playerid);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- Taser[ playerid ] = false;
- BulletTaser[ playerid ] = 5;
- if(cargo == 1)
- {
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 25, 100);
- GivePlayerWeapon(playerid, 31, 250);
- GivePlayerWeapon(playerid, 17, 3);
- GivePlayerWeapon(playerid, 4, 1);
- format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(cargo == 2)
- {
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerWeapon(playerid, 31, 300);
- GivePlayerWeapon(playerid, 17, 5);
- GivePlayerWeapon(playerid, 4, 1);
- format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(cargo == 3)
- {
- GivePlayerWeapon(playerid, 24, 250);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 31, 350);
- GivePlayerWeapon(playerid, 17, 7);
- GivePlayerWeapon(playerid, 4, 1);
- format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(cargo == 4)
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 25, 250);
- GivePlayerWeapon(playerid, 31, 400);
- GivePlayerWeapon(playerid, 17, 10);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 34, 30);
- format(string, sizeof(string), "* Policial %s pega seus equipamentos.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(cargo == 5)
- {
- GivePlayerWeapon(playerid, 24, 400);
- GivePlayerWeapon(playerid, 25, 300);
- GivePlayerWeapon(playerid, 31, 450);
- GivePlayerWeapon(playerid, 17, 12);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 34, 60);
- format(string, sizeof(string), "* Policial %s pega seus equipamentos de Sub-Líder.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- if(cargo == 6)
- {
- GivePlayerWeapon(playerid, 24, 500);
- GivePlayerWeapon(playerid, 25, 350);
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerWeapon(playerid, 17, 15);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 34, 100);
- format(string, sizeof(string), "* Policial %s pega seus equipamentos de Líder.", PlayerName(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return true;
- } */
- if(IsAGang(playerid))
- {
- if(PlayerDados[playerid][pLider] >= 1)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 800);
- GivePlayerWeapon(playerid, 25, 400);
- GivePlayerWeapon(playerid, 31, 600);
- GivePlayerWeapon(playerid, 34, 50);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: Líder.");
- format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerDados[playerid][pCargo] <= 1)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 800);
- GivePlayerWeapon(playerid, 25, 400);
- GivePlayerWeapon(playerid, 31, 600);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 1.");
- format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerDados[playerid][pCargo] == 2)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 800);
- GivePlayerWeapon(playerid, 25, 400);
- GivePlayerWeapon(playerid, 31, 600);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 2.");
- format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerDados[playerid][pCargo] == 3)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 800);
- GivePlayerWeapon(playerid, 25, 400);
- GivePlayerWeapon(playerid, 31, 600);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 3.");
- format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerDados[playerid][pCargo] == 4)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 800);
- GivePlayerWeapon(playerid, 25, 400);
- GivePlayerWeapon(playerid, 31, 600);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 4.");
- format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else if(PlayerDados[playerid][pCargo] == 5)
- {
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 800);
- GivePlayerWeapon(playerid, 25, 400);
- GivePlayerWeapon(playerid, 31, 600);
- GivePlayerWeapon(playerid, 34, 50);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos de cargo: 5.");
- format(String, sizeof(String), "*%s: O Gangster %s pegou seus equipamentos.", NomeORG(playerid), PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return true;
- }
- if (GetPlayerOrg(playerid) == 9)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 43, 50);
- SendClientMessage(playerid, 0xAFAFAFAA, "Você pegou seus equipamentos.");
- format(String, sizeof(String), "* O Reporter %s pegou seus equipamentos.", PlayerName(playerid));
- ProxDetector(30.0, playerid, String, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xAFAFAFAA, "Você não possui esse comando.");
- return 1;
- }
- }
- //========================================================================\\
- CallBack:: LocalEquipar(playerid)
- {
- if(GetPlayerOrg(playerid) == 1 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1530.192504,-1664.163818,6.218750)) return true;// Polícia Militar
- if(GetPlayerOrg(playerid) == 2 && IsPlayerInRangeOfPoint(playerid, 3, playerid,229.734130,164.912231,1003.023437)) return true;// BOPE
- if(GetPlayerOrg(playerid) == 3 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-1345.844116,492.493896,11.202690)) return true;// Exército
- if(GetPlayerOrg(playerid) == 5 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1679.952758,-2119.342285,13.546875)) return true;// Los Aztecas
- if(GetPlayerOrg(playerid) == 6 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-2237.558837,2353.743408,4.980449)) return true;// TALIBAN
- if(GetPlayerOrg(playerid) == 7 && IsPlayerInRangeOfPoint(playerid, 3, playerid,355.204986,169.194015,1025.789062)) return true;// GOVERNO
- if(GetPlayerOrg(playerid) == 8 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1073.134887,-345.133392,73.992187)) return true;// Hitmans
- if(GetPlayerOrg(playerid) == 9 && IsPlayerInRangeOfPoint(playerid, 3, playerid,273.0112,1704.1206,-10.5221)) return true; // Reporteres JÁ SETEI BY DEREK
- if(GetPlayerOrg(playerid) == 11 && IsPlayerInRangeOfPoint(playerid, 3, playerid,229.711013,165.000732,1003.023437)) return true;// P.FEDERAL
- if(GetPlayerOrg(playerid) == 12 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1616.032958,1687.587524,11.218446)) return true;// C.NOSTRA
- if(GetPlayerOrg(playerid) == 13 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2626.962158,1815.546020,11.023437)) return true;// Yakuza
- if(GetPlayerOrg(playerid) == 14 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2510.500976,-1672.311523,13.425003)) return true;// Groove Street
- if(GetPlayerOrg(playerid) == 15 && IsPlayerInRangeOfPoint(playerid, 3, playerid,414.725463,2531.359130,19.167875)) return true;// AL'QAEDA
- if(GetPlayerOrg(playerid) == 16 && IsPlayerInRangeOfPoint(playerid, 3, playerid,229.795776,165.021392,1003.023437)) return true;// P.CIVIL
- if(GetPlayerOrg(playerid) == 17 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1137.900634,-1196.093872,32.027549)) return true;// Ballas
- if(GetPlayerOrg(playerid) == 18 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2815.815917,-1178.537475,25.269187)) return true;// Los Vagos
- if(GetPlayerOrg(playerid) == 19 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2155.252441,-1810.334838,13.549571)) return true;// Comando Verme
- if(GetPlayerOrg(playerid) == 20 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1304.855957,-860.100219,39.578125)) return true;// PCC
- if(GetPlayerOrg(playerid) == 21 && IsPlayerInRangeOfPoint(playerid, 3, playerid,506.578247,-80.521987,998.960937)) return true;// Sons Of Anarch
- if(GetPlayerOrg(playerid) == 22 && IsPlayerInRangeOfPoint(playerid, 3, playerid,23.415683,-2654.846923,40.507911)) return true;// MAYANS
- if(GetPlayerOrg(playerid) == 23 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-220.617767,1405.519165,27.765625)) return true;// INTERPOL
- if(GetPlayerOrg(playerid) == 24 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2743.299560,-2454.479492,13.862256)) return true;// MECANICOS
- if(GetPlayerOrg(playerid) == 25 && IsPlayerInRangeOfPoint(playerid, 3, playerid,846.190917,-2037.009521,12.867187)) return true;// ROTA
- if(GetPlayerOrg(playerid) == 26 && IsPlayerInRangeOfPoint(playerid, 3, playerid,2079.4207,-1574.9639,14.9043)) return true;// MARINHA
- if(GetPlayerOrg(playerid) == 27 && IsPlayerInRangeOfPoint(playerid, 3, playerid,-74.329750,-1738.409912,10.854687)) return true;// DETRAN
- if(GetPlayerOrg(playerid) == 28 && IsPlayerInRangeOfPoint(playerid, 3, playerid,1391.582885,-1622.954101,13.546875)) return true;// BOMBEIROS
- if(GetPlayerOrg(playerid) == 29 && IsPlayerInRangeOfPoint(playerid, 3, playerid,761.278076,1440.112792,1102.703125)) return true;// AERONAUTICA
- if(GetPlayerOrg(playerid) == 30 && IsPlayerInRangeOfPoint(playerid, 3, playerid,945.796508,2.059014,1000.929687)) return true;// M.RUSSA
- if(GetPlayerOrg(playerid) == 31 && IsPlayerInRangeOfPoint(playerid, 3, playerid,273.773071,-2164.707031,2.797812)) return true;// PIRATAS
- if(GetPlayerOrg(playerid) == 32 && IsPlayerInRangeOfPoint(playerid, 3, playerid,234.261611,111.291336,1003.225708)) return true;// KAMIKAZES
- //if(IsAEnforcerCar(GetPlayerVehicleID(playerid)) && IsACop(playerid)) return true; // caveirão
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment