TheRedShoko написа:Jointeam може да бъде блокирана чрез плъгин
Код за потвърждение: Избери целия код
#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;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2070\\ f0\\ fs16 \n\\ par }
*/