Admins online
#1

Hey guys i need a cmd to show online rcon admins in Dialog and in cmd /admins

Both type please.

Thanks.
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/Admins",true))
{
    new Admins,String[128];
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
        if(!IsPlayerAdmin(i) || !IsPlayerConnected(i)) continue;
        Admins++;
        format(String,128,"%i. %s (ID: %03i)",Admins,GetName(i),i);
        SendClientMessage(playerid,COLOR_RED,String);
    }
    if(Admins == 0) SendClientMessage(playerid,COLOR_RED,"No admin connection.");
    return true;
}
Reply
#3

Alright, thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)