Admin chat sending blank messages
#5

pawn Код:
CMD:a(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new string[128];
        if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /a [message]");

        switch(PlayerInfo[playerid][pAdmin])
        {
            case 1: format(string, sizeof(string), "{009DFF}Trial Mod %s: {FFFFFF}%s", PlayerName(playerid), params);
            case 2: format(string, sizeof(string), "{009DFF}Moderator %s: {FFFFFF}%s", PlayerName(playerid), params);
            case 3: format(string, sizeof(string), "{009DFF}Admin %s: {FFFFFF}%s", PlayerName(playerid), params);
            case 4: format(string, sizeof(string), "{009DFF}Lead Admin %s: {FFFFFF}%s", PlayerName(playerid), params);
            case 5: format(string, sizeof(string), "{009DFF}Owner %s: {FFFFFF}%s", PlayerName(playerid), params);
        }
        SendAdminMessage(COLOR_WHITE, string);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "ERROR: You don't seem to be an admin!");
    }
    return 1;
}
EDIT: nvm
Reply


Messages In This Thread
Admin chat sending blank messages - by Luis- - 17.09.2011, 20:56
Re: Admin chat sending blank messages - by =WoR=Varth - 17.09.2011, 21:03
Re: Admin chat sending blank messages - by Luis- - 17.09.2011, 21:05
Re: Admin chat sending blank messages - by =WoR=Varth - 17.09.2011, 21:10
Respuesta: Admin chat sending blank messages - by OPremium - 17.09.2011, 21:12
Re: Admin chat sending blank messages - by Luis- - 17.09.2011, 21:12
Respuesta: Re: Admin chat sending blank messages - by OPremium - 17.09.2011, 21:20
Re: Admin chat sending blank messages - by Tee - 17.09.2011, 21:22
Re: Admin chat sending blank messages - by Luis- - 17.09.2011, 21:24
Re: Admin chat sending blank messages - by =WoR=Varth - 17.09.2011, 21:25

Forum Jump:


Users browsing this thread: 2 Guest(s)