Code:
#include <amxmodx>
#define PLUGIN "No Developer"
#define VERSION "1.0"
#define AUTHOR "aNNakin"
#define minutes 0
public plugin_init ( )
register_plugin ( PLUGIN, VERSION, AUTHOR );
public client_putinserver ( id )
if ( ! is_user_bot ( id ) )
query_client_cvar ( id, "developer", "cvar_result_func" );
public client_command ( id )
query_client_cvar ( id, "developer", "cvar_result_func" );
public cvar_result_func ( id, const cvar[], const value[] )
{
new i_Value = str_to_num ( value );
if ( i_Value == 1 )
{
new s_Ip[ 22 ];
get_user_ip ( id, s_Ip, 21, 1 );
server_cmd ( "kick #%d ^"Developer^";wait;addip ^"%s^" ^"%s^";wait;writeip", get_user_userid ( id ), minutes, s_Ip );
}
}
It doesn't work, wtf..
PS: don't say why i didn't check the arg. @ client_command (i know i should have)
__________________