Author Topic: !admins cmd bug  (Read 2671 times)

0 Members and 1 Guest are viewing this topic.

Offline Riders

  • Street Thug
  • *
  • Posts: 16
    • View Profile
!admins cmd bug
« on: November 06, 2012, 04:38:22 am »

1.When i do !admins non-register players name will appear in the !admins list
2.Is there any Auto-Kick for Non-Register Peoples?

Can anyone Know how to fix it?

Pic for the !admins bug :-

http://s7.postimage.org/psjjyp30r/vc_mp_003.jpg
http://s7.postimage.org/7e90upqq3/vc_mp_004.jpg

[pawn]else if ( strcmp( cmd, "!admins", true ) == 0 )
   {
      new a, b[ 128 ], m = GetMaxPlayers() + 1;
      for ( a = 0; a < m; a++ )
      {
         if ( IsPlayerConnected( a ) && IsPlayerValidAdmin( a ) )
         {
            if ( strlen( b ) ) format( b, 128, "%s , %s", b, gPlayers[ a ] );
            else format( b, 128, "%s", gPlayers[ a ]);
         }
      }
      if ( strlen( b ) )
      {
         format( szMsg, 128, "Admins Ingame: %s", b );
         SendClientMessageToAll( GREEN, szMsg );
      }
      else SendClientMessageToAll( RED, "No admins ingame." );
   }[/pawn]

Regards,
Riders

Offline [S]angeeta

  • Street Thug
  • *
  • Posts: 14
    • View Profile
Re: !admins cmd bug
« Reply #1 on: November 06, 2012, 02:12:41 pm »
[pawn]}
   else if ( strcmp( cmd, "!admins", true ) == 0 )
   {
      new a, b[ 128 ], m = GetMaxPlayers() + 1;
      for ( a = 0; a < m; a++ )
      {
         if ( IsPlayerConnected( a ) && IsPlayerValidAdmin( a ) )
         {
            if ( strlen( b ) ) format( b, 128, "%s, %s[%d]", b, gPlayers[ a ], PlayerInfo[ a ][ Level ] );
            else format( b, 128, "%s[%d]", gPlayers[ a ], PlayerInfo[ a ][ Level ] );
         }
      }
      if ( strlen( b ) )
      {
         format( szMsg, 128, "Admins Ingame: %s", b );
         SendClientMessageToAll( BLUE, szMsg );
      }
      else SendClientMessageToAll( BLUE, "No admins ingame." );
   }[/pawn]