Thread: Join team block
View Single Post
Creey
Junior Member
Join Date: Oct 2017
Location: Morocco
Old 03-06-2018 , 18:45   Re: Join team block
Reply With Quote #4

Quote:
#include < amxmodx >
#include < cstrike >

public plugin_init( )
{
register_plugin( "Block jointeam", "0.1", "Crey" );
}

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;
}
Creey is offline