How to make that ?
#8

I wouldn't use the one Roel used, because this will look like this with 4 RCON admins:
Rcon Admin: KwardeRcon Admin:KevinRcon Admin: PlayerRcon Admin:Admin
I'd prefer this one:
pawn Код:
CMD:admins(playerid, params[])
{
    new str[128], pName[MAX_PLAYER_NAME], adminCount;
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if (!IsPlayerConnected(i) || !IsPlayerAdmin(i)) continue; //Skip non-RCON admins and non-connected players
        adminCount++;
        GetPlayerName(i, pName, MAX_PLAYER_NAME);
        if (adminCount == 1) format (str, 128, "%s", pName);
        else if(adminCount > 1) format(str, 128, "%s , %s", str, pName);
    }
    if (adminCount >= 1)
    {
        SendClientMessage(playerid, 0x00FF00AA, "* Online RCON admin(s):");
        SendClientMessage(playerid, 0xFFFFFFAA, str);
    }
    else SendClientMessage(playerid, 0xFF0000AA, "* No RCON admins online!");
    return 1;
}
When no RCON admins are logged in, you'll get a red text saying * No RCON admins online!. Otherwise, with 4 RCON admins, it'd look like this:

* Online RCON admin(s):
Kwarde , Kevin , Player , Admin
Reply


Messages In This Thread
How to make that ? - by x96664 - 17.10.2012, 19:03
Re: How to make that ? - by Red_Dragon. - 17.10.2012, 19:06
Re: How to make that ? - by Roel - 17.10.2012, 19:10
Re: How to make that ? - by Bicentric - 17.10.2012, 19:11
Re: How to make that ? - by Red_Dragon. - 17.10.2012, 19:12
Re: How to make that ? - by Bicentric - 17.10.2012, 19:14
Re: How to make that ? - by Roel - 17.10.2012, 19:14
Re: How to make that ? - by Kwarde - 17.10.2012, 19:16
Re: How to make that ? - by x96664 - 17.10.2012, 19:16
Re: How to make that ? - by x96664 - 17.10.2012, 19:42

Forum Jump:


Users browsing this thread: 3 Guest(s)