12.02.2019, 20:47
Try cmd .Chance variable admins
CMD:admins(playerid,params[])
{
foreach(Player, i)
{
new level[128],status[200], string[128];
if(PlayerInfo[i][pAdmin] >= 1)
{
switch(PlayerInfo[i][pAdmin])
{
case 1: level = "[Trial Staff Member] ";
case 2: level = "[Junior Moderator] ";
case 3: level = "[Moderator] ";
case 4: level = "[Junior Admin] ";
case 5: level = "[Lead Admin] ";
case 6: level = "[Community Co-Owner] ";
case 7: level = "[Community Owner] ";
}
// Other if ststement removed to stop copying of my main code
format(string, sizeof(string), "%s %s\n", level, GetName(i));
ShowPlayerDialog(playerid, DIALOG_ONLINE_ADMINS, DIALOG_STYLE_LIST, "Online Staff", string, "Close", "");
}
else{
ShowPlayerDialog(playerid, DIALOG_ONLINE_ADMINS, DIALOG_STYLE_LIST, "Online Staff", "[SERVER] Anti-Cheat Is: Administrating", "Close", "");
}
}
return 1;
}
CMD:admins(playerid,params[])
{
foreach(Player, i)
{
new level[128],status[200], string[128];
if(PlayerInfo[i][pAdmin] >= 1)
{
switch(PlayerInfo[i][pAdmin])
{
case 1: level = "[Trial Staff Member] ";
case 2: level = "[Junior Moderator] ";
case 3: level = "[Moderator] ";
case 4: level = "[Junior Admin] ";
case 5: level = "[Lead Admin] ";
case 6: level = "[Community Co-Owner] ";
case 7: level = "[Community Owner] ";
}
// Other if ststement removed to stop copying of my main code
format(string, sizeof(string), "%s %s\n", level, GetName(i));
ShowPlayerDialog(playerid, DIALOG_ONLINE_ADMINS, DIALOG_STYLE_LIST, "Online Staff", string, "Close", "");
}
else{
ShowPlayerDialog(playerid, DIALOG_ONLINE_ADMINS, DIALOG_STYLE_LIST, "Online Staff", "[SERVER] Anti-Cheat Is: Administrating", "Close", "");
}
}
return 1;
}