Raised This Month: $32 Target: $400
 8% 

Dead Name Change


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
VEN
Veteran Member
Join Date: Jan 2005
Old 01-06-2007 , 13:51   Dead Name Change
Reply With Quote #1

Dead Name Change
Description
Plugin allow to a players change their names while not alive.
By default the plugin will work for anyone on the server.
Via CVars you can configure access level flags, disable text
"* NAME1 changed name to NAME2" and also disable the plugin.
CVars
  • dnc_enable (0: OFF, 1: ON, default: 1) - controls plugin state
  • dnc_access (access level flags, default: "") - allowed access level flags
  • dnc_announce (0: OFF, 1: ON, default: 1) - controls announce text state

Credits
L3X - initial idea
Attached Files
File Type: sma Get Plugin or Get Source (dead_name_change.sma - 8270 views - 2.6 KB)

Last edited by VEN; 01-08-2007 at 05:00.
VEN is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 01-06-2007 , 13:56   Re: Dead Name Change
Reply With Quote #2

o.O nice
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 01-06-2007 , 14:58   Re: Dead Name Change
Reply With Quote #3

Very nice... very useful GJ VEN
SubStream is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-06-2007 , 17:51   Re: Dead Name Change
Reply With Quote #4

Interesting. I might have to steal some (i.e. most) of this code for any of my plugins that change players' names.
__________________
Brad is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 01-07-2007 , 08:08   Re: Dead Name Change
Reply With Quote #5

I also have the "No Name Change" plugin (in the Request forum). It might worth a merge two in one and then change name to "Name Change Control". So you can have a full control of name changes. Modes:
  • alive/not alive
  • admins/all
  • disable/enable announce text
  • ...maybe more

Last edited by VEN; 01-07-2007 at 08:28.
VEN is offline
L3X.
Junior Member
Join Date: Nov 2006
Old 01-07-2007 , 10:36   Re: Dead Name Change
Reply With Quote #6

thx. man!
L3X. is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 01-07-2007 , 20:18   Re: Dead Name Change
Reply With Quote #7

might want to label this as counter-strike instead of all mods..

because:

Code:
new /* const */ g_name_change[] = "#Cstrike_Name_Change"
..for example, dod for i believe uses the hl default of: "#game_changed_name"

and another thing in dod.. it prints in the chat:
Quote:
Originally Posted by ingame chat
* Map changed name to Map
..it changes right no matter what im changing my name to, but it always prints that in the chat..
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
VEN
Veteran Member
Join Date: Jan 2005
Old 01-08-2007 , 05:01   Re: Dead Name Change
Reply With Quote #8

Of course, marked as CS only, thanks.
VEN is offline
MRG
Junior Member
Join Date: May 2007
Old 05-12-2007 , 23:52   Re: Dead Name Change
Reply With Quote #9

After I installed this plugin, the server started getting this error over and over again:

Code:
L 05/10/2007 - 00:00:07: Invalid player id 71279224
L 05/10/2007 - 00:00:07: [AMXX] Run time error 10 (plugin "statsx.amxx") - debug not enabled!
L 05/10/2007 - 00:00:07: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 05/10/2007 - 00:00:20: Invalid player id 71279224
L 05/10/2007 - 00:00:20: [AMXX] Run time error 10 (plugin "statsx.amxx") - debug not enabled!
L 05/10/2007 - 00:00:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
I went and disabled all the stats plugins, but then all the plugins started generating the same type of error. I unloaded the CSX module but that had no effect. I disabled all the non-default plugins, no effect. I enabled debug mode on all plugins and all their errors were all similar to this:

Code:
L 05/10/2007 - 21:58:52: Invalid player id 71276812
L 05/10/2007 - 21:58:52: [AMXX] Displaying debug trace (plugin "admin.amxx")
L 05/10/2007 - 21:58:52: [AMXX] Run time error 10: native error (native "get_user_flags")
L 05/10/2007 - 21:58:52: [AMXX]    [0] amxmisc.inc::cmd_access (line 26)
L 05/10/2007 - 21:58:52: [AMXX]    [1] admin.sma::cmdReload (line 479)
By this time, the log file was grown to over 50Mbs because these errors were coming seemingly every second. Only when I reloaded the AMX module did the problem go away. I reenabled each non-default plugin one at a time. When I reenabled this plugin, the problem started again just like the first error above.

The server was using AMX version 1.71. Since I took this plugin off, there has been no more problems.

Last edited by MRG; 05-13-2007 at 02:13.
MRG is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-13-2007 , 03:10   Re: Dead Name Change
Reply With Quote #10

Upgrade AMX Mod X to the latest version and try to reproduce this again.
VEN is offline
Reply


Thread Tools
Display Modes

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 20:17.


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