Admin Chat
#1

Okay, So I need help with the actual command of the Admin Chat, but ive already got the stock. heres the stock
pawn Код:
stock SendMessageToAdmins(fromid, colour, msg[])
{
    new pName[MAX_PLAYER_NAME], string[128];
    GetPlayerName(fromid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s: %s", pName, msg);
    for(new i; i < GetMaxPlayers(); i++)
    {
        if(pInfo[playerid][pAdmin] < 1)
        {
            SendClientMessage(i, colour, string);
        }
    }
}
So how do i do the CMD:a(playerid,params[])


I need it in ZCMD btw
Reply


Messages In This Thread
Admin Chat - by Mriss - 15.03.2014, 01:15
Re: Admin Chat - by DarkLored - 15.03.2014, 01:18
Re: Admin Chat - by Mriss - 15.03.2014, 01:41
Re: Admin Chat - by DarkLored - 15.03.2014, 01:43
Re: Admin Chat - by DerickClark - 15.03.2014, 02:55
Re: Admin Chat - by DarkLored - 15.03.2014, 02:57
Re: Admin Chat - by DerickClark - 15.03.2014, 03:01

Forum Jump:


Users browsing this thread: 2 Guest(s)