23.05.2013, 12:54
Something like this?
(Edit pInfo enum with your own).
When you want show the admin name in /stats do:
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;
}
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);