Hello, in my
jailbreak, some players can enter to the counter terrorist team
This plugin block users only if they are in a team... but when users enter in the server (for the first time) they can enter by writing :
"jointeam 02" in the console...
So how can i block them when they join the server, then block them from writing
"jointeam 02"
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 jointeam while on a team! BOT!" );
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}