Raised This Month: $ Target: $400
 0% 

get if player changed name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-30-2010 , 16:23   Re: get if player changed name
Reply With Quote #2

Quote:
Originally Posted by D1ma View Post
I have this code:
Code:
public plugin_init() {
    register_plugin("Ban IP In Name","1.0","D[i]Ma/NickName3")
    register_clcmd("name", "name_change")
}
public name_change(id, level, cid) {
    read_args(g_allArgs, 1023)
    strtolower(g_allArgs)
    remove_quotes(g_allArgs)
    log_amx("User changed name to ^"%s^"",g_allArgs)
    return PLUGIN_CONTINUE
}
but the public name_change is not callled
What is the problem here?
Thanks.
The "name" command is not sent to the server. You have to use client_infochanged() or similar. Search for other plugins that check the name.
__________________
fysiks is offline
 



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:49.


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