17.03.2011, 00:28
Well i made that if it shows admin is level 1 on /admins it will say "name Level 1 (server moderator)" but i got a problem it only shows "name level 1" how do i make it show Server mod beside it??
pawn Код:
CMD:admins(playerid, params[])
{
new AdminRank[30];
switch (PlayerData[playerid][AdminLevel])
{
case 0: format(AdminRank, 30, "(Server Moderator)");
case 1: format(AdminRank, 30, "(Global Moderator)");
case 2: format(AdminRank, 30, "(Administrator)");
case 3: format(AdminRank, 30, "(Server Owner)");
}
SendClientMessage(playerid,0xFF9900AA, ".: Admin's Online!! :.");
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Level %d %s",name,PlayerData[playerid][AdminLevel],AdminRank);
SendClientMessage(playerid,0xFF9900AA,string);
return 1;
}