I'm need command /admins
#3

Quote:
Originally Posted by KoczkaHUN
Посмотреть сообщение
You should have explained it better...
Maybe:
pawn Код:
CMD:admins(playerid, params[])
{
    SendClientMessage(playerid, 0xffff00ff, "Online admins:");
    new isAdminOnline = false;
    new adminLine[64], adminName[MAX_PLAYER_NAME];
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if (GetPVarInt(i, "Level") >= 1) // change 1 to the the minimum admin level
        {
            isAdminOnline = true;
            GetPlayerName(i, adminName, MAX_PLAYER_NAME);
            format(adminLine, sizeof adminLine, "%s - Level: %d", adminName, GetPVarInt(i, "Level"));
            SendClientMessage(playerid, 0x00ff00ff, adminLine);
        }
    }
    if (!isAdminOnline) SendClientMessage(playerid, 0xff0000ff, "There are no admins online.");
    return 1;
}
Yes, thank you-
working
Reply


Messages In This Thread
I'm need command /admins - by Userpwon - 15.09.2012, 18:33
Re: I'm need command /admins - by KoczkaHUN - 15.09.2012, 18:44
Re: I'm need command /admins - by Userpwon - 15.09.2012, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)