Raised This Month: $ Target: $400
 0% 

Nick change!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Prayer
Junior Member
Join Date: Nov 2007
Old 01-24-2008 , 17:54   Nick change!
Reply With Quote #1

Hi everybody!

I have a request for one small plugin.. I know its not comlicated but I'm not scripting in this language.. ordinary php, js etc.. (for web mostly) I need a plugin which does not allow player to change nick while he is on my server..
Dont make it any different, because i need only this, no more.. I want to keep it simple.. It would be great if u attach sma file too..

Waiting for some reply, thanks.. And sry for my bad grammar in english :/
Prayer is offline
[kirk]./musick`
Senior Member
Join Date: Jun 2007
Location: Tampa, Florida
Old 01-24-2008 , 18:09   Re: Nick change!
Reply With Quote #2

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <nvault> 

new eVaulteName[64], eSteam[64], tName[33

public 
plugin_init() { 
register_plugin("Nick Change""1.0""emoD")    
register_concmd("say /savenick""nuser"


public 
client_putinserver(id) {  
Check_User(id


public 
nuser(id) {  
new 
eSteam[64], eName[64]  
// Type Your Steam Id, To Be Stored  
get_user_authid(ideSteam63)
// Type Your Nick, To Be Stored  
get_user_name(ideName63)
  
eVault nvault_open("Users")  
nvault_set(eVaulteSteameName)  
nvault_close(eVault)   

 
public 
sUser(eName[64], eSteam[64]) {  
eVault nvault_open("Users")    
nvault_set(eVaulteSteameName)    
nvault_close(eVault

 
public 
client_infochanged(id) {  
Check_User(id

 
public 
Check_User(id) {    
get_user_name(idtName32)  
get_user_authid(ideSteam63)    
eVault nvault_open("Users")    
nvault_get(eVaulteSteameName63)    
if(!
equal(eNametName))  {   
client_cmd(id"name ^"%s^""eName)  
}   
nvault_close(eVault
 
return 
PLUGIN_HANDLED

__________________

Last edited by [kirk]./musick`; 01-24-2008 at 18:40.
[kirk]./musick` is offline
Send a message via AIM to [kirk]./musick`
r3d_w1r3
Senior Member
Join Date: Sep 2006
Old 01-24-2008 , 18:36   Re: Nick change!
Reply With Quote #3

here is the plugin u want http://forums.alliedmods.net/showthread.php?p=154865
r3d_w1r3 is offline
Prayer
Junior Member
Join Date: Nov 2007
Old 01-24-2008 , 19:32   Re: Nick change!
Reply With Quote #4

sry guyz its not what i needed.. i need a plugin that they cannot change name only when on my server like one guy for example joins my server with nick lets say buddy or whatever then he tries to change his nick to buddy2 but the plugin doesn't allow it and lets say shows a hud message you cannot change nick while in server.. but if he disconnects then changes nick to buddy2 comes in game and its alright.. i dont want to save nicks somewhere just not allow players to change their nicks while in game in my server..
Prayer is offline
[kirk]./musick`
Senior Member
Join Date: Jun 2007
Location: Tampa, Florida
Old 01-24-2008 , 21:52   Re: Nick change!
Reply With Quote #5

Try this

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

Good luck,
Kirk

PS: A cvar has been provided, if you don't want this plugin to be enabled, just set "amx_nickchange" to "0".
__________________

Last edited by [kirk]./musick`; 01-25-2008 at 07:40.
[kirk]./musick` is offline
Send a message via AIM to [kirk]./musick`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2008 , 07:27   Re: Nick change!
Reply With Quote #6

change:
PHP Code:
if (!iCvar) return PLUGIN_HANDLED
to
PHP Code:
if (!get_pcvar_num(iCvar)) return PLUGIN_HANDLED
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
[kirk]./musick`
Senior Member
Join Date: Jun 2007
Location: Tampa, Florida
Old 01-25-2008 , 07:40   Re: Nick change!
Reply With Quote #7

Ugh, thanks, I knew I forgot something out of there
__________________
[kirk]./musick` is offline
Send a message via AIM to [kirk]./musick`
Prayer
Junior Member
Join Date: Nov 2007
Old 01-25-2008 , 17:44   Re: Nick change!
Reply With Quote #8

Big thatnks to you guyz.. ;) Maybe tell me where i can learn script in amxx?
Prayer is offline
Prayer
Junior Member
Join Date: Nov 2007
Old 01-25-2008 , 17:47   Re: Nick change!
Reply With Quote #9

em just tried to compile it but it gives me 2 errors.. maybe try by yourself and change what is needed.. because i dont know what thx for helping ;)
Prayer is offline
Prayer
Junior Member
Join Date: Nov 2007
Old 01-26-2008 , 14:40   Re: Nick change!
Reply With Quote #10

will you help me plz?
Prayer 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 14:28.


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