04.09.2015, 16:48
Use this code
Notice how I replaced %d with %s and changed PlayerInfo[playerid][pAdmin] to LevelToRank(PlayerInfo[playerid][pAdmin])
Next you need to define LevelToRank so here it is
You obviously need to finish working on LevelToRank and by the way I did not test that code
Код:
format(string, sizeof(string), "%s - Admin Rank: "COL_LIGHTBLUE"%s "COL_WHITE"("COL_GREEN"On Duty"COL_WHITE")", pname, LevelToRank(PlayerInfo[playerid][pAdmin]));
Next you need to define LevelToRank so here it is
Код:
stock LevelToRank(level) { new rank[20]; switch(level) { case 1: rank = "Moderator"; case 2: rank = "Whatever you want"; etc.... case 6: rank = "Owner"; default: rank = "Player"; } return rank; }