22.05.2016, 16:24
Код:
stock GetAdminRank(playerid) { new arank[64]; switch(pInfo[playerid][Admin]) { case 99999: arank = "Community Owner"; case 99998: arank = "Co-Community Owner"; case 1337: arank = "Management"; case 4: arank = "Head Admin"; case 3: arank = "General Admin"; case 2: arank = "Junior Admin"; case 1: arank = "Server Moderator"; case 0: arank = "Player"; } return arank; } stock GetAdvisorRank(playerid) { new carank[64]; switch(pInfo[playerid][Communityadvisor]) { case 4: carank = "Chief Advisor"; case 3: carank = "Senior Advisor"; case 2: carank = "General Advisor"; case 1: carank = "Trial Advisor"; case 0: carank = "Player"; } return carank; }
Код:
format(string, sizeof(string), "%s %s : %s", GetAdminRank(playerid), GetName(playerid), text);