How to add a rank?
#1

how to add the Admin rank

Code:
COMMAND:admins(playerid, params[])
{
    new str[128],name[MAX_PLAYER_NAME];
    SendClientMessage(playerid, 0xFFFFFFAA, "Admins Online:"); 
    for(new i; i<=MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if (APlayerData[playerid][PlayerLevel] >= 1)
            {
                 GetPlayerName(i,name,sizeof(name));
                 format(str, sizeof(str), "%s[%d]",name, i);
                 SendClientMessage(playerid, 0xFFFFFFAA, str); 
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to add a rank? - by DerickClark - 26.01.2013, 21:10
Re: How to add a rank? - by mineralo - 26.01.2013, 21:25
Re: How to add a rank? - by DerickClark - 26.01.2013, 21:39
AW: How to add a rank? - by Blackazur - 26.01.2013, 21:51
Re: How to add a rank? - by DerickClark - 26.01.2013, 21:53
Re: How to add a rank? - by DerickClark - 26.01.2013, 22:26
Re: How to add a rank? - by Threshold - 27.01.2013, 00:58

Forum Jump:


Users browsing this thread: 3 Guest(s)