Need a little help.
#5

Quote:
Originally Posted by Dwane
Посмотреть сообщение
pawn Код:
#include <zcmd>
#include <foreach>

CMD:admins(playerid, params[])
{
    new string[128], CountAdmins, Name[MAX_PLAYER_NAME];
    foreach(Player, i) {
        GetPlayerName(i, Name, sizeof(Name));
        if(PlayerInfo[playerid][AdminLevel] >= 1) {
            CountAdmins = 1;
        }
    }
    if(CountAdmins == 1) {
        SendClientMessage(playerid, COLOR, "Admins Online List");
        foreach(Player, i) {
            if(PlayerInfo[playerid][AdminLevel] >= 1) {
                format(string, sizeof(string), "Admin: %s (ID: %d) - Level: %d", Name, i, PlayerInfo[i][AdminLevel]);
                SendClientMessage(playerid, COLOR, string);
            }
        }
    }
    if(CountAdmins == 0) SendClientMessage(playerid, COLOR, "There are no currently Admins online!");
    CountAdmins = 0;
    return 1;
}

The command was /admins, not /setadmin
:O
Sorry i misread.
I am really sorry for the mistake
Reply


Messages In This Thread
Need a little help. - by ricardo178 - 08.01.2012, 14:30
Re: Need a little help. - by §с†¶e®РµРe - 08.01.2012, 14:38
Re: Need a little help. - by Konstantinos - 08.01.2012, 14:40
Re : Need a little help. - by ricardo178 - 08.01.2012, 14:46
Re: Need a little help. - by §с†¶e®РµРe - 08.01.2012, 14:48
Re: Need a little help. - by Konstantinos - 08.01.2012, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)