i have editing one script (to make him work) and i have problems...
plugin this protect the nick to connect and change to protected nick`s
i have made he change name on connect/ but problems are in there when in game change someone to this protected nick it justj not work...
Code:
public onChange(id){
new name[32], namechange[32], strline = 1, data[32], stxtsize
get_user_info(id, "name", name, 31)
get_user_name( id, name, 31 )
set_hudmessage(200, 100, 0, -1.0, 0.25, 0, 1.0, 5.0, 0.1, 0.2, 2)
if(file_exists("addons/amxmodx/configs/WatchAdmin.cfg")){
while((strline=read_file("addons/amxmodx/configs/WatchAdmin.cfg",strline,data,31,stxtsize))!=0){
if(strline < 100 && strline > -1){
if(containi( name,data )!=-1 ){
client_print(0,print_chat,"***WARNING*** '%s' - This is a reserved name")
client_print(0,print_chat,"To view Reserved Names: /reservednames")
formatex(namechange, 31, "Bich", id)
set_user_info(id, "name", namechange)
client_print(0,print_chat, "say /reservednames")
}
}
}
}
return PLUGIN_CONTINUE
}
where is problem????? my mistake