need help with admin system
#1

Is it possible to have a code that if a player or another admin uses a command it sends it to admins online. If its possible can someone show me an example of it please
Reply
#2

Something like that ?
pawn Код:
CMD:test(playerid, params[])
{
    new pname[25], string[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s use /test.", pname);
    SendAdminMessage(-1, string);
    return 1;
}

stock SendAdminMessage(color, string)
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 0)
        {
            SendClientMessage(i, color, string)
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)