[Help] /admins command. [SOLVED]
#10

Quote:
Originally Posted by Nakash
Quote:
Originally Posted by Gijs (TSG-Hosting.de)
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
     SendClientMessage(playerid, COLOR_GRAD1, "Admins Online:");
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
      if(IsPlayerConnected(i))
      {
        if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
        {
         GetPlayerName(i, sendername, sizeof(sendername));
         format(string, 256, "[Level:%d] %s (ID:%d)", PlayerInfo[i][pAdmin],sendername,playerid);

         SendClientMessage(playerid, COLOR_GREEN, string);

        }
      }
     }
   }
   return 1;
  }
Try that
thanks! it works now hehe,but the id still 1 ;p maybe i'll change playerid to I?
yes if you do that then it will work

Gijs
Reply


Messages In This Thread
[Help] /admins command. [SOLVED] - by Nakash - 29.08.2009, 12:19
Re: [Help] /admins command. - by gijsmin - 29.08.2009, 12:24
Re: [Help] /admins command. - by ded - 29.08.2009, 12:26
Re: [Help] /admins command. - by Correlli - 29.08.2009, 12:28
Re: [Help] /admins command. - by ded - 29.08.2009, 12:31
Re: [Help] /admins command. - by gijsmin - 29.08.2009, 12:49
Re: [Help] /admins command. - by ded - 29.08.2009, 12:59
Re: [Help] /admins command. - by MenaceX^ - 29.08.2009, 13:11
Re: [Help] /admins command. - by Nakash - 29.08.2009, 13:15
Re: [Help] /admins command. - by gijsmin - 29.08.2009, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)