/admins online command
#5

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(IsPlayerAdmin(i))
        {
            new string[27];
            new sendername[MAX_PLAYER_NAME];
            GetPlayerName(i, sendername, sizeof(sendername));
            format(string, sizeof(string), "Admin: %s", sendername);
            SendClientMessage(playerid, culoare, string);
        }
    }
}
The IsPlayerAdmin only works with rcon admins , replace that with what you're using to check if is an admin(if you have an custom-made admin-system)
Also ,this is only the loop , make the command the same as the others.
Reply


Messages In This Thread
/admins online command - by Face9000 - 25.10.2010, 07:32
Re: /admins online command - by Rachael - 25.10.2010, 07:38
Re: /admins online command - by SampStunta - 25.10.2010, 07:43
Re: /admins online command - by BMUK - 25.10.2010, 13:58
Re: /admins online command - by Dj_maryo1993 - 25.10.2010, 14:05

Forum Jump:


Users browsing this thread: 4 Guest(s)