[AYUDA]No se desactiva la SPECIAL_ACTION
#2

pawn Код:
YCMD:llamar(playerid, params[], help){
    new numero, data[200];
    if(sscanf(params, "d", numero)) return SendClientMessage(playerid, COL_AYUDA, "Uso: "COL_WHITE"/llamar [numero]");

    for(new player, user = GetMaxPlayers(); player != user; player++){
        if(player == playerid) continue;
        if(IsPlayerConnected(player)){
            if(PlayerInfo[player][pTelefono] == numero){
                format(data, sizeof(data), "%s saca el telefono", GetName(playerid));
                ProxDetector2(30, playerid, data,0xC2A2DAAA,0xAA8EBFAA,0x947BA6AA,0x7D688CAA,0x665573AA);

                SendClientMessage(playerid, 0xFFCC26AA, "Operadora: "COL_WHITE"Llamando");
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
                break;
            }else{
                format(data, sizeof(data), "%s guarda el telefono", GetName(playerid));
                ProxDetector2(30, playerid, data,0xC2A2DAAA,0xAA8EBFAA,0x947BA6AA,0x7D688CAA,0x665573AA);

                SendClientMessage(playerid, 0xFFCC26AA, "Operadora: "COL_WHITE"El numero al que llama no existe");
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                 break;
            }
        }else{
            format(data, sizeof(data), "%s guarda el telefono", GetName(playerid));
            ProxDetector2(30, playerid, data,0xC2A2DAAA,0xAA8EBFAA,0x947BA6AA,0x7D688CAA,0x665573AA);

            SendClientMessage(playerid, 0xFFCC26AA, "Operadora: "COL_WHITE"El telefono se encuentra apagado o fuera de covertura, intentelo de nuevo mбs tarde");
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
             break;
        }
    }
    return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)