admins online command
#2

Код:
#define DIALOG_ONLINEADMINS 1

CMD:admins(playerid, params[])
{
    new adminstring[128];
    if(IsPlayerConnected(playerid))
    {
      for (new i = 0; i < MAX_PLAYERS; i++)
      {
        if(IsPlayerConnected(i))
        {
          if(PlayerInfo[i][pLevel] > 0)
          {
            format(adminstring, sizeof(adminstring),"%s%s[ID:%d]\n", adminstring, PlayerName(i), i);
          }
        }
      }
      ShowPlayerDialog(playerid,DIALOG_ONLINEADMINS,DIALOG_STYLE_MSGBOX,"Online admins",adminstring,"Close","");
    }
    else return SendClientMessage(playerid,-1," No admins online");
    return 1;
}
Reply


Messages In This Thread
admins online command - by rocker3410 - 08.01.2014, 11:24
Re: admins online command - by ReD_HunTeR - 08.01.2014, 11:33
Re: admins online command - by Sawalha - 08.01.2014, 11:39
Re: admins online command - by rocker3410 - 08.01.2014, 11:49
Re: admins online command - by ReD_HunTeR - 08.01.2014, 12:42
Re: admins online command - by CutX - 08.01.2014, 13:37

Forum Jump:


Users browsing this thread: 2 Guest(s)