dcmd_a (admin chat) not working after trying to fix a lot...
#3

pawn Код:
dcmd_a(playerid, params[])
{
    if(pInfo[playerid][pAdmin] >= 1)
    {
        new msg[128], string[128];
        if(sscanf(params, "s", msg)) return SendClientMessage(playerid, COLOR_LIGHTYELLOW, "USAGE: /a [text]");
        else if(strlen(msg) < 1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW, "You are not an Adminstrator with the required level.");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(pInfo[i][pAdmin] >= 1)
            {
               format(string, sizeof(string), "Admin %s: %s", pNick(playerid), msg);
               SendClientMessage(i, COLOR_LIGHTBLUE, string);
            }
        }
    }
    return 1;
}
or try this, i've fixed yours
Reply


Messages In This Thread
dcmd_a (admin chat) not working after trying to fix a lot... - by Andy_McKinley - 27.03.2010, 09:40
Re: dcmd_a (admin chat) not working after trying to fix a lot... - by MadeMan - 27.03.2010, 09:44
Re: dcmd_a (admin chat) not working after trying to fix a lot... - by Niixie - 27.03.2010, 09:46
Re: dcmd_a (admin chat) not working after trying to fix a lot... - by Andy_McKinley - 27.03.2010, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)