I have a problem with the admin ranks
#2

Код:
stock NameA(playerid){
	new rank[80];
	switch(pInfo[playerid][pAdmin]){
                case 7: rank = "Management";
                case 6: rank = "Head Admin";
                case 5: rank = "Senior Admin";
		case 4: rank = "Advanced Admin";
		case 3: rank = "General Admin";
		case 2: rank = "Basic Admin";
		case 1: rank = "Junior Admin";
		default: rank = "Player";
	}
	return rank;
}
Usage:
Код:
SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Administrators Online");
foreach(Player, i){
    if(pInfo[i][pAdmin] > 0){
        format(string, sizeof(string), "%s %s{%d}", NameA(i), NameL(i),playerid);
        SendClientMessage(playerid, COLOR_WHITE, string);
    }
}
Reply


Messages In This Thread
I have a problem with the admin ranks - by Barnwell - 17.12.2017, 14:45
Re: I have a problem with the admin ranks - by Gameluner - 17.12.2017, 14:53
Re: I have a problem with the admin ranks - by Barnwell - 17.12.2017, 14:54
Re: I have a problem with the admin ranks - by Gameluner - 17.12.2017, 14:55
Re: I have a problem with the admin ranks - by xMoBi - 17.12.2017, 14:56
Re: I have a problem with the admin ranks - by Barnwell - 17.12.2017, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)