Raised This Month: $ Target: $400
 0% 

Questions about nickname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-24-2010 , 12:48   Questions about nickname
Reply With Quote #1

Hi there.

1) I need to know how to block the message in chat, when someone changes his nick.

2) If it is possible, block ingame nick change.
Backstabnoob is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-24-2010 , 14:57   Re: Questions about nickname
Reply With Quote #2

Buhh, already seen it. Try to search some more ( only for #2 )
__________________
I am out of order!
grimvh2 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-24-2010 , 15:03   Re: Questions about nickname
Reply With Quote #3

try this #2:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "#8 SickneSS"

new cvar

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_concmd("amx_lockname","cmdLock",ADMIN_CVAR)
    
cvar register_cvar("nnchange","0")
    
register_message(get_user_msgid("SayText"),"MessageNameChange")
}

public 
cmdLock(id,level,cid) {
    
    if(!
cmd_access(id,level,cid,1))
        return 
PLUGIN_HANDLED
    
    
new name[32]
    
get_user_name(id,name,31)
    
    
set_pcvar_num(cvar,get_pcvar_num(cvar) == 0)
    
client_print(0,print_chat,"ADMIN %s Has %sabled the name change",name,get_pcvar_num(cvar) ? "dis" "en")
    
    return 
PLUGIN_HANDLED
}

public 
client_infochanged(id) {
    
    if(!
get_pcvar_num(cvar))
        return 
PLUGIN_HANDLED
    
    
new newname[32]
    
get_user_info(id,"name",newname,31)
    
    new 
oldname[32]
    
get_user_name(id,oldname,31)
    
    if(!
equal(newname,oldname))
    {
        
set_user_info(id,"name",oldname)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE
}

public 
MessageNameChange() {
    
    if(!
get_pcvar_num(cvar))
        return 
PLUGIN_CONTINUE
    
    
new szInfo[64
    
get_msg_arg_string(2,szInfo,63
    
    if(
equali(szInfo,"#Cstrike_Name_Change"))
            return 
PLUGIN_HANDLED
            
    
return PLUGIN_CONTINUE

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 14:46.


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