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

Name Replacer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Exolent[jNr] (178)
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-12-2008 , 18:56   Name Replacer
Reply With Quote #1

Name Replacer

Changelog:

* [ 1.1.0 ]
- added cvars
- 3 options: name change, kick or ban
- you can choose the way the name is changed: from list or the last name the player used
- admins can have immunity

* [ 1.0 ]
- first released

Plugin details:
- this is a small but usefull plugin.
- you can restrict names from a file and give them a replacer.
- if a player enters on the server/change the name in a restricted name, the player's name will be changed.
- you need amxx 1.7 or higher.

Credit:
Alka

Usage:
- add in amxmodx/configs/name_list.txt :
Code:
name;replacer
name2;replacer2
name3;replacer3
- example:
Code:
mut2nt;reserved
if a player enters on the server/change the name in 'mut2nt', it will be changed it 'reserved'.
PHP Code:
#define NAMES        32 // max lines in the file
#define DELAY        10.0 // after how many seconds the name is checked after the player enters
#define ACCESS        ADMIN_IMMUNITY // acces needed to have immunity to name checking

new const g_File[] =     "name_list.txt"// file name 

Cvars:

namereplacer_mode 0/1/2/3
  • 0 - disabled
  • 1 - name change
  • 2 - kick
  • 3 - ban
(default 1)

namereplacer_list 0/1
  • 0 - the name will be changed to the last name the player has used
  • 1 - the name will be changed from file
(default 1 )

For instance:
- if the cvar is set to 0: if a player has the name 'x' and change it to 'y' (y is restricted from file), his name will be set to 'x'
- if the cvar is set to 1: if a player has the name 'x' and change it to 'y' (y is restricted from file), his name will be set to x-1 (x-1 is replacer to x from file)

namereplacer_banlenght - ban lenght (default 1200)
namereplacer_evoyadmins - allow admins to have a restricted name from file (default 0)
Attached Files
File Type: sma Get Plugin or Get Source (NameReplacer.sma - 9647 views - 4.5 KB)
__________________


Last edited by YamiKaitou; 11-05-2010 at 17:22. Reason: Version 1.1.0
anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2008 , 19:08   Re: Name Replacer
Reply With Quote #2

Would be more interesting using regular expression, I think.
__________________

Last edited by Arkshine; 09-12-2008 at 19:10.
Arkshine is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-12-2008 , 19:48   Re: Name Replacer
Reply With Quote #3

Bad timing, based on the reports about the latest beta of CS, from my understanding.

Exolent, you may be thinking of my Restrict Names plugin, which uh, can actually do this... with regular expressions. Yay!

Isn't Steam going to make to make us all use our Steam Friends name shortly anyway? That's what I was alluding to in my first sentence of this post.
__________________
Brad is offline
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 09-24-2008 , 17:03   Re: Name Replacer
Reply With Quote #4

Quote:
Originally Posted by Brad View Post
Bad timing, based on the reports about the latest beta of CS, from my understanding.

Exolent, you may be thinking of my Restrict Names plugin, which uh, can actually do this... with regular expressions. Yay!

Isn't Steam going to make to make us all use our Steam Friends name shortly anyway? That's what I was alluding to in my first sentence of this post.
Yeah. After the update, we'll only be able to use what's in our Steam Friend's name.
P4rD0nM3 is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-12-2008 , 19:16   Re: Name Replacer
Reply With Quote #5

Oh...i think you want to say to not hardcode print_chat ?

Edit: Changed.
__________________


Last edited by anakin_cstrike; 09-12-2008 at 19:20.
anakin_cstrike is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-12-2008 , 19:37   Re: Name Replacer
Reply With Quote #6

I could've sworn there is at least 1 plugin that does the same functionality.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-12-2008 , 19:46   Re: Name Replacer
Reply With Quote #7

....where?
__________________

anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2008 , 20:24   Re: Name Replacer
Reply With Quote #8

Quote:
Originally Posted by anakin_cstrike View Post
Oh...i think you want to say to not hardcode print_chat ?

Edit: Changed.
I mean, using module Regex ( regular expression ), like does the Restrict Names plugin by Brad.
__________________
Arkshine is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-12-2008 , 20:36   Re: Name Replacer
Reply With Quote #9

Well, it will be similar with Brad's plugin.
__________________

anakin_cstrike is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 09-14-2008 , 01:56   Re: Name Replacer
Reply With Quote #10

I have a question, This plugin get the compleat name or a part

Example: Nick: Reymon

And a put Rey; lalala

The change to: lalala ?
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
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 05:41.


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