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

Dont allow Nickname-Change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 07-22-2017 , 08:59   Dont allow Nickname-Change
Reply With Quote #1

Hello, i am searching a Plugin who dont allow to change there Nicknamens in Game.

- Dont allow non vip users to change her Nickname in Game

- Dont allow VIPS/Admins/SAdmins to change here Nickname in Game.

That Users get a Message when they try to change name like:

-> Its not allowed to change your Name. Please leave Server, change your Name via Option, and then come back.

That they get that Auto Message via Console + In Game via Green Color too. It would really cool.
Godofwar is offline
@ae_245
Junior Member
Join Date: Jul 2017
Location: Iran, Tehran
Old 07-28-2017 , 10:50   Re: Dont allow Nickname-Change
Reply With Quote #2

not tested:
+ print color in chat
+ print in console
Attached Files
File Type: sma Get Plugin or Get Source (no_nick_change.sma - 484 views - 2.6 KB)
__________________
@ae_245 is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 07-28-2017 , 12:52   Re: Dont allow Nickname-Change
Reply With Quote #3

look at these codes.
https://forums.alliedmods.net/showthread.php?p=424320
https://forums.alliedmods.net/showthread.php?p=147257
or try this OLD MANS RETIRED ASS PLUGIN. R.I.P. Connor McLeod LOL

#include <amxmodx>
#include <fakemeta>
#include <amxmisc>

#define VERSION "0.1.0"

public plugin_init()
{
register_plugin("One Name", VERSION, "ConnorMcLeod")
register_forward(FM_ClientUserInfoChanged, "ClientUserInfoChanged")
}

public ClientUserInfoChanged(id)
{
if( is_user_admin( id ) )
{
return FMRES_IGNORED
}

static const name[] = "name"
static szOldName[32], szNewName[32]
pev(id, pev_netname, szOldName, charsmax(szOldName))
if( szOldName[0] )
{
get_user_info(id, name, szNewName, charsmax(szNewName))
if( !equal(szOldName, szNewName) )
{
set_user_info(id, name, szOldName)
return FMRES_HANDLED
}
}
return FMRES_IGNORED
}
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 07-29-2017 , 05:35   Re: Dont allow Nickname-Change
Reply With Quote #4

Quote:
Originally Posted by @ae_245 View Post
not tested:
+ print color in chat
+ print in console

Thanks. Works fine.
Godofwar 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 21:35.


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