How to add new admin names? (Roleplay)
#8

Quote:
Originally Posted by Face9000
Посмотреть сообщение
Something like this?

pawn Код:
stock AdminLevelToName(playerid)
{
    new admin[128];
    switch(pInfo[playerid][Admin])
    {
        case 0:
        {
            admin = "Normal Player";
        }
        case 1:
        {
            admin = "Trustee";
        }
        case 2:
        {
            admin = "Moderator";
        }
        case 3:
        {
            admin = "Admin";
        }
        case 4:
        {
            admin = "Head Admin";
        }
        case 5:
        {
            admin = "Owner";
        }
    }
    return admin;
}
(Edit pInfo enum with your own).

When you want show the admin name in /stats do:

pawn Код:
new string[128];
format(string,sizeof(string),"Admin Name: %s",AdminLevelToName(playerid);
SCM(playerid,-1,string);
Yeah, But I want to make a new one with different level and name like if 5 is not used. I'll make it Developer rank but How?
Reply


Messages In This Thread
How to add new admin names? (Roleplay) - by DouglasRamirez - 22.05.2013, 13:47
Re: How to add new admin names? (Roleplay) - by BigGroter - 22.05.2013, 16:19
Re: How to add new admin names? (Roleplay) - by DouglasRamirez - 23.05.2013, 11:44
Re: How to add new admin names? (Roleplay) - by mahdi499 - 23.05.2013, 11:52
Re: How to add new admin names? (Roleplay) - by Jizz - 23.05.2013, 12:19
Re: How to add new admin names? (Roleplay) - by mahdi499 - 23.05.2013, 12:37
Re: How to add new admin names? (Roleplay) - by Face9000 - 23.05.2013, 12:54
Re: How to add new admin names? (Roleplay) - by DouglasRamirez - 23.05.2013, 14:49
Re: How to add new admin names? (Roleplay) - by Face9000 - 23.05.2013, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)