22.10.2014, 18:25
try
pawn Код:
//At top of script
#include <zcmd>
CMD:admins(playerid, params[])
{
#pragma unused params
new count=0;
new string[128],sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][level] > 0) // change to your admin system
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"Level %d: %s",pInfo[i][level], sendername);
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"Online Administrators:",string,"Ok","");
count++;
}
}
}
if (count == 0)
SendClientMessage(playerid,COLOR_GREY,"There are no Admins Online at the moment");
}
return 1;
}