-----Online Admins----- Admin Admin Admin -----Online Admins-----
-----No Online Admins-----
stock AdminName(playerid) { new name[32]; if(PlayerInfo[playerid][pAdmin] == 1) format(name, sizeof(name), "Junior Admin"); else if(PlayerInfo[playerid][pAdmin] == 2) format(name, sizeof(name), "General Admin"); else if(PlayerInfo[playerid][pAdmin] == 3) format(name, sizeof(name), "Senior Admin"); else if(PlayerInfo[playerid][pAdmin] == 6) format(name, sizeof(name), "Lead Admin"); else if(PlayerInfo[playerid][pAdmin] == 1337) format(name, sizeof(name), "Head Admin"); else if(PlayerInfo[playerid][pAdmin] == 1338) format(name, sizeof(name), "Server Owner"); return name; }
Create a stock of this however you can modify it to your own.
Код:
stock AdminName(playerid) { new name[32]; if(PlayerInfo[playerid][pAdmin] == 1) format(name, sizeof(name), "Junior Admin"); else if(PlayerInfo[playerid][pAdmin] == 2) format(name, sizeof(name), "General Admin"); else if(PlayerInfo[playerid][pAdmin] == 3) format(name, sizeof(name), "Senior Admin"); else if(PlayerInfo[playerid][pAdmin] == 6) format(name, sizeof(name), "Lead Admin"); else if(PlayerInfo[playerid][pAdmin] == 1337) format(name, sizeof(name), "Head Admin"); else if(PlayerInfo[playerid][pAdmin] == 1338) format(name, sizeof(name), "Server Owner"); return name; } format(string, sizeof(string), "|_____Online Admins_____|"); SendClientMessage(playerid, COLOR_ORANGE, string); If(PlayerInfo[playerid][pAdmin] >=1) { format(string, sizeof(string), " %s %s", AdminName(playerid), GetPlayerName(i)); SendClientMessage(playerid, COLOR_HCHAT, string); } If you get errors you should modify it on the basis of your script. |
This hasn't helped me... But i'll give you a Rep for wasting time and helping noobs
|
// Holds the admin-levelnames
new AdminLevelName[6][24] =
{
{"Player"}, // Admin-level 0
{"Moderator"}, // Admin-level 1
{"Helper-admin"}, // Admin-level 2
{"Admin"}, // Admin-level 3
{"Head-admin"}, // Admin-level 4
{"Owner-admin"} // Admin-level 5
};