I don't really get what you're trying to do by messing with player commands.
It was always picking you because you simply executed client_cmd on the 'id' player index which is you.
PHP Code:
#include < amxmodx >
#include < amxmisc >
public plugin_init( )
{
register_concmd( "amx_check", "Check_Player", ADMIN_BAN, "<Nick|SteamID>" );
register_concmd( "amx_uncheck", "UnCheck_Player", ADMIN_BAN, "<Nick|SteamID>" );
}
public Check_Player( id, iLevel, iCid )
{
if ( ! cmd_access( id, iLevel, iCid, 2 ) )
return PLUGIN_HANDLED
new szName[ 32 ];
read_argv( 1, szName, charsmax( szName ) );
new iPlayer = cmd_target( id, szName, CMDTARGET_ALLOW_SELF );
if( ! is_user_connected( iPlayer ) )
{
client_print( id, print_console, "(!) Player not found" );
return PLUGIN_HANDLED;
}
engclient_cmd( iPlayer, "+jump" ) ;
return PLUGIN_HANDLED
}
public UnCheck_Player( id, iLevel, iCid )
{
if ( ! cmd_access( id, iLevel, iCid, 2 ) )
return PLUGIN_HANDLED
new szName[ 32 ];
read_argv( 1, szName, charsmax( szName ) );
new iPlayer = cmd_target( id, szName, CMDTARGET_ALLOW_SELF );
if( ! is_user_connected( iPlayer ) )
{
client_print( id, print_console, "(!) Player not found" );
return PLUGIN_HANDLED;
}
engclient_cmd( iPlayer,"+jump" ) ;
return PLUGIN_HANDLED
}
__________________