/admins Command.
#5

Code:
// Variables
enum pInfo
{
    AdminRank,
};

// Stock - Setting out the Administration ranks
stock GetAdminRank(playerid)
{
     new adminrank[128];
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
         switch(pInfo[I][AdminLevel]
         {
               case 0: "";
               case 1: //designated Admin rank here 
               case 2: //designated Admin rank here
               case 3: //designated Admin rank here
               case 4: //designated Admin rank here
               case 5: // designated Admin rank here
          }
          return adminrank;
}

CMD:admins(playerid, params[])
{
     format(string, sizeof(string), "[%s] %s [%d]", GetAdminRank(playerid), n, playerid);
     SendClientMessage(playerid, colour, string);
     return 1;
}
You should be able to sort out everything by yourself, based off this code.

Also, do you use MySQL or dini for saving?
Reply


Messages In This Thread
/admins Command. - by TuSheng - 20.03.2015, 10:20
Re: .:[Help]:. /admins Command. - by CalvinC - 20.03.2015, 10:22
Re: .:[Help]:. /admins Command. - by iZN - 20.03.2015, 10:42
Re: /admins Command. - by FOTIS6 - 20.03.2015, 12:00
Re: /admins Command. - by IzadorO - 20.03.2015, 12:03
Re: /admins Command. - by fuckingcruse - 20.03.2015, 12:07
Re: /admins Command. - by Glossy42O - 20.03.2015, 12:14
Re: .:[Help]:. /admins Command. - by TuSheng - 20.03.2015, 12:22
Re: .:[Help]:. /admins Command. - by iZN - 20.03.2015, 12:40
Re: .:[Help]:. /admins Command. - by CalvinC - 20.03.2015, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)