URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Death War
  HTML https://deathwar.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Server Suggestions
       *****************************************************
       #Post#: 837--------------------------------------------------
       adding player cmd - [Denied]
       By: MatriX Date: September 7, 2011, 4:22 am
       ---------------------------------------------------------
       You can add player cmd thats !player ...its commands
       [Code]
       else if ( strcmp( cmd, "players", true ) == 0 )
       {
       new a, b[ 128 ], m = GetMaxPlayers() + 1;
       for ( a = 0; a < m; a++ )
       {
       if ( IsPlayerConnected( a ))
       {
       if ( strlen( b ) ) format( b, 128, "Total: [%d]: %s,
       %s",GetMaxPlayers(), b, gPlayers[ a ] );
       else format( b, 128, "%s", gPlayers[ a ] );
       }
       }
       if ( strlen( b ) )
       {
       format( szMsg, 128, "Players: %s, Total: [%d]", b,
       GetMaxPlayers() );
       SendClientMessageToAll( COLOR_YELLOW, szMsg );
       }
       }
       [/Code]
       Just add this on
       [code]
       onplayercommandtext
       [/code]
       #Post#: 882--------------------------------------------------
       Re: adding player cmd
       By: kitt85711 Date: September 10, 2011, 12:01 am
       ---------------------------------------------------------
       Lol instead of "players" try "!player"
       #Post#: 883--------------------------------------------------
       Re: adding player cmd
       By: MaDKiLLeR Date: September 10, 2011, 4:29 am
       ---------------------------------------------------------
       [quote]Pawnoc has encountered a problem and need to be
       close[/quote]
       lol
       #Post#: 892--------------------------------------------------
       Re: adding player cmd
       By: kitt85711 Date: September 10, 2011, 7:47 am
       ---------------------------------------------------------
       Denied.  :)
       *****************************************************