if(strcmp(cmd, "/equipm", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1) { if(PlayerToPoint(3.0,playerid,1529.82,-1661.18,6.22)) { ShowPlayerDialog(playerid,666,DIALOG_STYLE_LIST,"E quipar PM","Cargo - 1\nCargo - 2\nCargo - 3\nCargo - 4\nCargo - 5\nCargo - 6","OK","Fechar"); } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб na HQ !"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD1, "Vocк Nгo й Da Policia Militar !"); } } return 1; } |
if(dialogid == 666){ if(response){ if(listitem == 0){ GivePlayerWeapon(playerid, 3, 999); GivePlayerWeapon(playerid, 22, 150); GivePlayerWeapon(playerid, 41, 500); GivePlayerWeapon(playerid, 25, 150); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 1){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 2){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 29, 150); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 3){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 4){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 5){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 34, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } } else{ } } |
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1) { |
if(dialogid == 666 && IsACop(playerid)){ if(response){ if(listitem == 0){ GivePlayerWeapon(playerid, 3, 999); GivePlayerWeapon(playerid, 22, 150); GivePlayerWeapon(playerid, 41, 500); GivePlayerWeapon(playerid, 25, 150); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 1){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 2){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 29, 150); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 3){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 4){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } if(listitem == 5){ GivePlayerWeapon(playerid, 3, 999); // cacetete D: GivePlayerWeapon(playerid, 4, 200); GivePlayerWeapon(playerid, 23, 150); // Silenciadora GivePlayerWeapon(playerid, 24, 500); // EAGLE D: GivePlayerWeapon(playerid, 25, 150); // DOZE D: GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 34, 200); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); } } else{ } } |