Need command /admins
#3

pawn Код:
CMD:admins(playerid, params[])
{
    if(playercount >= 1)
    {
        new str[128], count = 0;
        SendClientMessage(playerid, GREEN, "||| Admins Online |||"); // change colors
        for(new i; i<=playercount; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(IsPlayerAdmin(i))
                {
                    format(str, sizeof(str), "%s[%d]", Name3(i), i);
                    SendClientMessage(playerid, YELLOW, str); // this too
                    count++;
                }
            }
        }
        if(count == 0) return SendClientMessage(playerid, RED, "No admins online"); // maybe this too?
    }
    return 1;
}
Reply


Messages In This Thread
Need command /admins - by RiChArD_A - 26.01.2013, 20:04
Re: Need command /admins - by coakiddo - 26.01.2013, 20:07
Re: Need command /admins - by Tamer - 26.01.2013, 20:07
Respuesta: Re: Need command /admins - by RiChArD_A - 26.01.2013, 20:21
Re: Need command /admins - by coakiddo - 26.01.2013, 20:24
AW: Need command /admins - by Blackazur - 26.01.2013, 20:26
Respuesta: Re: Need command /admins - by RiChArD_A - 26.01.2013, 20:35

Forum Jump:


Users browsing this thread: 2 Guest(s)