/admins cmd help
#2

Try this:

Код:
if (strcmp("/admins", cmdtext, true) == 0)
{
    SendClientMessage(playerid, 0xAFAFAFAA,"|_Current Online Administrators_|");
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if (adminlevel[i] >= 1)
        {
            new name[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME+3];
            GetPlayerName(i, name, sizeof(name));
            format(string, sizeof(string), "%s(ID:%d)",name,i);
            SendClientMessage(playerid, 0x1E90FFAA, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
/admins cmd help - by Venice - 27.03.2011, 01:42
Re: /admins cmd help - by Noah_Roufus - 27.03.2011, 02:27

Forum Jump:


Users browsing this thread: 1 Guest(s)