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?