|
Author
|
Message
|
|
Junior Member
|

02-23-2007
, 03:08
Re: nameprotection need litle help
|
#1
|
1)then compilate i have this
Quote:
/home/groups/amxmodx/tmp3/phpyiRnC9.sma(84) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpyiRnC9.sma(92) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpyiRnC9.sma(94) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpyiRnC9.sma(100) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpyiRnC9.sma(103) : warning 209: function "onChange" should return a value
|
2)added like this
[quote]public onChange(id){</p><p> new name[32], namechange[32], oldname[32], strline = 1, data[32], stxtsize</p><p> get_user_info(id, "name", name, 31)</p><p> get_user_name(id, oldname, 31)</p><p> set_hudmessage(200, 100, 0, -1.0, 0.25, 0, 1.0, 5.0, 0.1, 0.2, 2)</p><p> if(file_exists("addons/amxmodx/configs/WatchAdmin.cfg")){</p><p> while((strline=read_file("addons/amxmodx/configs/WatchAdmin.cfg",strline,data,31,stxtsize))!=0){</p><p> if(strline < 100 && strline > -1){</p><p> if(containi( name,data )!=-1 ){</p><p> client_print(0,print_chat,"***WARNING*** '%s' - This is a reserved name")</p><p> client_print(0,print_chat,"To view Reserved Names: /reservednames")</p><p> </p><p> </p><p> formatex(namechange, 31, "Bich", id)</p><p> set_user_info(id, "name", namechange)</p><p> client_print(0,print_chat, "say /reservednames")</p><p> </p><p> }</p><p> }</p><p> }</p><p> }</p><p> if ( equal(oldname, name) )</p><p> return PLUGIN_CONTINUE</p><p>}[/quote]
3)not helepd.... i can change nick to reserved(with out admin privilegies)
4)here is a full source
|
|
|
|