Dale, pero quiero atacar, que en antiguas versiones funcionaba.
pawn Код:
zcmd(walkie, playerid, params[]){
        if(!sscanf(params, "s[32]", params[0])){
            if(PlayerInfo[playerid][pWalkie] == 0)    return Message(playerid, COLOR_GRAD2, "No tiene un Walkie Talkie.");
            if(strcmp(params[0],"prender",true) == 0){
                if(!RadioOn[playerid]){
                    return RadioOn[playerid] = 1,
                    PFrecuencia[playerid] = 0,
                    Message(playerid, COLOR_GREEN, "* Walkie-Talkie encendido.");
                }
                else Message(playerid, COLOR_GRAD2, "* Ya estб prendido.");
            }
            else if(strcmp(params[0],"apagar",true) == 0){
                if(RadioOn[playerid]){
                    return RadioOn[playerid] = 0,
                    PFrecuencia[playerid] = 0,
                    Message(playerid, COLOR_RED, "* Walkie-Talkie fue apagado.");
                }
                else Message(playerid, COLOR_GRAD2, "* Ya estб apagado.");
            }
        }
        else Message(playerid, COLOR_GRAD2, "Utilize: /walkie <prender, apagar>");
        return 1;
    }
    zcmd(frecuencia, playerid, params[]){
        if(PlayerInfo[playerid][pWalkie] > 0 && RadioOn[playerid]){
            new string[128];
            if(!sscanf(params, "i", params[0])){
                    if(params[0] < 1 || params[0] > 9999)
                        return Message(playerid, TEAM_RADIO_COLOR, "* Conйctese a un canal entre '1' y '9999'.");
                        PFrecuencia[playerid] = params[0],
                        format(string, sizeof string, "* Ahora tu frecuencia es: '%d'.",PFrecuencia[playerid]),
                        Message(playerid, COLOR_GREEN, string);
            }
            else Message(playerid, COLOR_GRAD2, "Utilize: /frecuencia <Nro> entre 1 - 9999");
        }
        else Message(playerid, COLOR_GRAD2, "* No tienes una radio con la que hablar / o estб apagada.");
        return 1;
    }
    zcmd(wt, playerid, params[]){
        if(RadioOn[playerid]){
            if(PFrecuencia[playerid] != 0){
                if(!sscanf(params, "s[128]", params[0])){
                    new string[128];
                    format(string, sizeof string, "* (F#%d) %s: %s", PFrecuencia[playerid], PlayerName(playerid), params[0]);
                    RadioMsg(PFrecuencia[playerid], string);
                }
                else Message(playerid, COLOR_GRAD2, "Utilize: /wt <mensaje>");
            }
            else Message(playerid, COLOR_GRAD2, "* No estбs en ninguna frecuencia. Utilize: '/frecuencia'");
        }
        else Message(playerid, COLOR_GRAD2, "* Radio apagada. Utilize: '/walkie prender'");
        return 1;
    }
    zcmd(d, playerid, params[]){
        if(!IsPlayerConnected(playerid)) return Message(playerid, COLOR_GRAD2, "No estбs conectado");
        if(RadioOn[playerid] == 0) return Message(playerid, COLOR_GRAD2, " Tu radio estб apagada.");
        if(!sscanf(params, "s[128]", params[0])){
            new string[128];
            if(Team_LSPD(playerid)){
                if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** [LS]Comandante  %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** [LS]Inspector %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** [LS]Capitбn %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** [LS]Teniente %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** [LS]Sargento %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** [LS]Investigador %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** [LS]Oficial %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** [LS]Cadete %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                    format(string, sizeof(string), "** [LS]Cadete %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
                if(Gobierno(playerid)){
                if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** [GOB]Gobernador %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** [GOB]Vice-Gobernador %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** [GOB]Alcalde %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** [GOB]Ministro %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** [GOB]Senador %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** [GOB]Diputado %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** [GOB]Concejal %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** [GOB]Guardaespaldas %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                format(string, sizeof(string), "** [GOB]Guarda Espaldas %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else if(Team_LVPD(playerid)){
                if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** [LV]Comandante  %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** [LV]Inspector %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** [LV]Capitбn %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** [LV]Teniente %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** [LV]Sargento %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** [LV]Investigador %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** [LV]Oficial %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** [LV]Cadete %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                    format(string, sizeof(string), "** [LS]Cadete %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else if(Team_NG(playerid)){
                if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** Coronel  %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** Mayor %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Capitбn %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Teniente %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Sargento %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Trooper %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Soldado %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cabo %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                    format(string, sizeof(string), "** Cabo %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else if(Team_SAMUR(playerid)){
                if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Responsable tйcnico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Supervisor %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Mйdico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Paramйdico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Prбctico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                    format(string, sizeof(string), "** Prбctico %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else if(Team_LVMD(playerid)){
                if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Responsable tйcnico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Supervisor %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Mйdico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Paramйdico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Prбctico %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                    format(string, sizeof(string), "** Prбctico %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else if(Team_FBI(playerid)){
                if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Sub-Director %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Criminalista %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Especial %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** S. Agente %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Agente %s: %s, cambio. **", PlayerName(playerid), params[0]); }
                else{
                    format(string, sizeof(string), "** Prбctico %s: %s, cambio. **", PlayerName(playerid), params[0]);
                }
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else if(PlayerInfo[playerid][pLeader] == 16){
                format(string, sizeof(string), "** Gobernador %s: %s, cambio. **", PlayerName(playerid), params[0]);
                SendRadioMessage(1, COLOR_ALLDEPT, string);
                SendRadioMessage(2, COLOR_ALLDEPT, string);
                SendRadioMessage(3, COLOR_ALLDEPT, string);
                SendRadioMessage(4, COLOR_ALLDEPT, string);
                SendRadioMessage(5, COLOR_ALLDEPT, string);
                SendRadioMessage(16, COLOR_ALLDEPT, string);
                SendRadioMessage(24, COLOR_ALLDEPT, string);
                printf("%s", string);
                return 1;
            }
            else Message(playerid, COLOR_GRAD2, "   No eres parte de un Departamento !");
        }
        else Message(playerid, COLOR_GRAD2, "   Uso: /d <Texto> !");
        return 1;
    }