Admin help
#3

pawn Код:
COMMAND:admins(playerid, params[])
{
    new
        icount,
        szAdminName[MAX_PLAYER_NAME];
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][Level])
        {
            if(!icount)
                SendClientMessage(playerid, 0x00FF00AA, "--- Online Admins ---");
            icount++;
            GetPlayerName(i, szAdminName, MAX_PLAYER_NAME);
            SendClientMessage(playerid, 0x00FF00AA, szAdminName);
        }
    }
    if(!icount)
        SendClientMessage(playerid, 0x00FF00AA, "No admins online");
    return 1;
}
Reply


Messages In This Thread
Admin help - by RatHack - 03.08.2011, 13:03
Re: Admin help - by OleKristian95 - 05.08.2011, 02:27
Re: Admin help - by iggy1 - 05.08.2011, 04:22

Forum Jump:


Users browsing this thread: 1 Guest(s)