need help with admin system
#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


Messages In This Thread
need help with admin system - by 1fret - 21.06.2014, 00:27
Re : need help with admin system - by Chipardeur - 21.06.2014, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)