Raised This Month: $ Target: $400
 0% 

[SOLVED}nameprotection need litle help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hacik
Junior Member
Join Date: Jun 2006
Old 02-22-2007 , 17:39   [SOLVED}nameprotection need litle help
Reply With Quote #1

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

Last edited by hacik; 02-23-2007 at 18:35.
hacik is offline
Send a message via Skype™ to hacik
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode