25.12.2014, 16:31
Quote:
Well make a ShowPlayerDialog, or just get a scripter on the Scripter Request part , do not ask people to script you stuff and not appreciate it.
|
pawn Код:
CMD:admins(playerid, params[]) {
new string[256], count = 0;
foreach(Player, i)
{
if(!PlayerInfo[ i ][ AdminLevel ]) continue;
format(string, sizeof(string), "%s\n{64CC66}%s %s{FFFFFF}(%d)", string, AdminRank(i), PlayerInfo[ i ][ PlayerName ], i), count++;
}
if(count) ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "List of online administrators" , string, "Close", "");
else ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Note" , "There aren't any online administrators.", "Close", "");
return 1;
}
stock AdminRank(playerid)
{
new string[16];
switch(PlayerInfo[ playerid ][ AdminLevel ])
{
case 0: string = "Player";
case 1: string = "Moderator";
case 2: string = "Super Moderator";
case 3: string = "Admin";
case 4: string = "Senior Admin";
case 5: string = "Head Admin";
default: string = "Unknown";
}
return string;
}
You should be able to make the '/helpers' command by your own now.