Ño manda mensaje.
#2

pawn Код:
CMD:a(playerid, params[])
{
    if(InformacionJugador_[playerid][pAdmin] > 0)
    {
        new mensaje[182];
        if(isnull(mensaje))
            return SendClientMessage(playerid, COLOR_PIEL, "* Debe indicar parбmetros para el comando(/a), formato: /a [Texto]");

        MandarMensajeAdmins_(playerid, COLOR_STAFF, mensaje);
    }
    return 1;
}


MandarMensajeAdmins_(color, mensaje[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(InformacionJugador_[i][pAdmin] >= 1 && InformacionJugador_[i][pAdmin] <= 6)
        {
            if(strlen(mensaje) > 75) {
                format(_out, sizeof(_out), "%s %s: %.75s ..", RangoStaff_(playerid), NombreJugador(playerid), mensaje);
                SendClientMessage(i, COLOR_STAFF, _out);
                format(_out, sizeof(_out), "... %s", mensaje[75]);
                SendClientMessage(i, COLOR_STAFF, _out);
            }
            else {
                format(_out, sizeof(_out), "%s %s: %.75s ..", RangoStaff_(playerid), NombreJugador(playerid), mensaje);    
                SendClientMessage(i, COLOR_STAFF, _out);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Ño manda mensaje. - by Fagrinht - 10.07.2016, 03:23
Re: Сo manda mensaje. - by KennySec - 10.07.2016, 07:05

Forum Jump:


Users browsing this thread: 1 Guest(s)