/admins and /me zcmd help
#7

pawn Код:
COMMAND:admins(playerid, params[])
{
    new string[128];
    SendClientMessage(playerid, COLOR, "[Online Administrators]:");
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(PlayerInfo[playerid][AdminLevel] >= 1) {
            new player_Name[MAX_PLAYER_NAME];
            GetPlayerName(i, player_Name, sizeof(player_Name));
            format(string, sizeof(string), "[Level: %d] %s", PlayerInfo[i][AdminLevel], player_Name);
            SendClientMessage(playerid, COLOR, string); //Don't forget to replace "COLOR" with a valid color
        }
    }
    return 1;
}
Should work perfectly fine.
Reply


Messages In This Thread
/admins and /me zcmd help - by ricardo178 - 24.03.2011, 22:33
Re: /admins and /me zcmd help - by austin070 - 24.03.2011, 22:38
Re: /admins and /me zcmd help - by grand.Theft.Otto - 24.03.2011, 22:39
Re: /admins and /me zcmd help - by SchurmanCQC - 24.03.2011, 22:40
Re: /admins and /me zcmd help - by austin070 - 24.03.2011, 22:41
Re: /admins and /me zcmd help - by ricardo178 - 24.03.2011, 22:43
Re: /admins and /me zcmd help - by Skylar Paul - 24.03.2011, 22:48

Forum Jump:


Users browsing this thread: 2 Guest(s)