can someone edit this plugin to block also commands in the console such as ex: fps_max, fps_override, kill, etc.
PHP Code:
#include < amxmodx >
#include < cstrike >
public plugin_init( )
{
register_plugin( "Block jointeam", "0.1", "Exolent" );
}
public client_command( client )
{
static const szJoinCommand[ ] = "jointeam";
static szCommand[ 10 ];
read_argv( 0, szCommand, 9 );
if( equal( szCommand, szJoinCommand )
&& CS_TEAM_T <= cs_get_user_team( client ) <= CS_TEAM_CT )
{
console_print( client, "You cannot use this command.!" );
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}