Raised This Month: $51 Target: $400
 12% 

one nickname in server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BackStats
Senior Member
Join Date: Oct 2008
Old 10-09-2010 , 15:19   one nickname in server
Reply With Quote #1

the first connection the nick is registered on the server, and will not be able to edit it in no time.
BackStats is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 10-10-2010 , 03:41   Re: one nickname in server
Reply With Quote #2

Quote:
Originally Posted by BackStats View Post
the first connection the nick is registered on the server, and will not be able to edit it in no time.
PHP Code:
#include <amxmodx>
#include <amxmisc>

new iCvar

public plugin_init() {
    
register_plugin("Nick Change""1.0""kirkhalo")
    
iCvar register_cvar("amx_nickchange""1")
}

public 
client_infochanged(id){
    if (!
get_pcvar_num(iCvar)) return PLUGIN_HANDLED;
    new 
newname[32], oldname[32]
    
get_user_info(id"name"newname31)
    
get_user_name(idoldname31)
    
    
server_cmd("amx_nick %s %s"newnameoldname)
    
client_print(0print_chat"[AMXX] Please change your name out of the server.")
    return 
PLUGIN_HANDLED

When amx_nickchange is 1 players can not change nicks on server. To disable make it 0.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
reinert
Veteran Member
Join Date: Feb 2007
Old 10-10-2010 , 04:28   Re: one nickname in server
Reply With Quote #3

I guess what he asked is another, like how u did is the problem when player disconnects changes nickname and connects again to same server.
reinert is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 10-10-2010 , 06:05   Re: one nickname in server
Reply With Quote #4

Hmm.. I don't know if it is possible because he wants to remember the steam_id and attach the name to it..
dj_freeze is offline
Send a message via Skype™ to dj_freeze
reinert
Veteran Member
Join Date: Feb 2007
Old 10-10-2010 , 06:22   Re: one nickname in server
Reply With Quote #5

Everything is possible. But you need to use nVault or MySQL.
reinert is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 10-10-2010 , 10:19   Re: one nickname in server
Reply With Quote #6

Isn't there a User Register plugin in Approved Plugins ?
__________________
Retired.
Xalus is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 10-10-2010 , 13:55   Re: one nickname in server
Reply With Quote #7

Quote:
Originally Posted by reinert View Post
I guess what he asked is another, like how u did is the problem when player disconnects changes nickname and connects again to same server.
just after you disconnect your nickname will be recorded and return when the server it will have to use it.
BackStats is offline
code
Member
Join Date: Nov 2011
Old 02-26-2014 , 17:33   Re: one nickname in server
Reply With Quote #8

thanks i looked for thiss everywere
code is offline
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 16:09.


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