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

[REQ] Auto Name Changer (TF2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 01-24-2008 , 14:47   [REQ] Auto Name Changer (TF2)
Reply With Quote #1

This is an idea for a plugin I'd love to have running on my TF2 server.

If a player types a command; "!addme" is the command I'd want to use but it would be better if the command were definable by the server admin, then the plugin adds a string (definable by the server admin) to the end of their player name.

The player's STEAM ID is stored in a database and every time they joined the server (or the map changed) then their name was changed to incorporate the additional string.

For example:
  • So on my TF2 server I've defined the string the plugin will add as "added"
  • I join with my nick set as "myname"
  • I type "!addme" and my name's changed to "myname added"
  • Then when the map changes and the next time I connect to the server my ingame name is automatically changed to "myname added"
Also a "!removeme" command would be needed
  • So I join the server as "myname added" and type "!removeme"
  • The plugin searches my name for the defined string and finds "added" within my name and strips it out to make my nick "myname"
  • The plugin then removes my Steam ID from it's database
If a plugin to do this was made fully featured then the config for this plugin would ask the admin whether to add the string to the end of the player name or if it was to be prefixed.

Would be excellent if or someone/ anyone could make this!
__________________

Last edited by Extreme_One; 05-27-2008 at 09:05. Reason: clarity
Extreme_One is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 01-28-2008 , 15:09   Re: Auto Name Changer
Reply With Quote #2

This will be such a good plugin for getting my regulars to tag up when they're on the server.

The database aspect is mainly for TF2 since your in-game name is handled by Steam Friends rather than a .cfg file.

I really hope someone will consider making this, if it's made and people fully understand what it's for I think people would really appreciate it.
__________________
Extreme_One is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 02-22-2008 , 06:16   Re: Auto Name Changer
Reply With Quote #3

I was wondering if anybody had the skill or the inclination to attempt this?
__________________
Extreme_One is offline
FrostbyteX
Senior Member
Join Date: Dec 2007
Old 02-22-2008 , 10:25   Re: Auto Name Changer
Reply With Quote #4

Could you please give a specific example.

What I'm envisioning is a configuration file:

Code:
"tag-up"
{
              "pattern" "[tag] [name]"
          
              "steam-ids"
              {
                           "player1"
                           {
                                        "tag" "YourTagHere"
                                        "id" "STEAM_0:0:82414"
                           }
                   
                           "player2"
                           {
                                        "tag" "YourTagHere"
                                        "id" "STEAM_0:0:1337"
                          }
         }
}
The plugin will hook the say command, search for "!addme" and, when found, will replace the calling player's name (in this case we will assume the player's name is "Larry" and his steamid is in the configuration file) with "YourTagHere Larry".

Is this what you want it to do?

Steve
FrostbyteX is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 02-22-2008 , 11:14   Re: Auto Name Changer
Reply With Quote #5

Thanks for the reply Steve.

I can't be explaining it clearly enough.

I had a similar pluigin running using an Eventscript for CS:S ages ago but I can't use Eventscripts with TF2

What I'm wanting is for a quick method for my regular players to add a a predefined tag to their in-game name to show support to our clan / server.

Any player can type "!addme" and the tag as defined by a cvar is added to the end of their name.

So let's say I defined the tag to be "|Evil" with a cvar something like sm_customtag "|Evil"

Then let's say you come on the server and type "!addme" in chat.
The plugin will then add "|Evil" to the end of your in-game name.

Now here's the interesting part: as a name change will only last until the end of the map in TF2 (player's names are pulled from the nick defined in Steam Friends settings) then a SQL-lite database is used to store your SteamID and remembers you so that after the map change and for each and every time you connect to the server afterwards you will get "|Evil" added to your in-game name.

A command like "!removeme" will be used for removing a player from the SQL-lite database and stopping the autonamer from running on them.

A great additional cvar to make this useful for other admins would also be to decide whether the tag is added to the end of a player's name or in front of it. (I choose after it)

There's an apparent difficulty to overcome in changing a players name in TF2.
As I said already an in-game nick is handled by the name set in Steam Friends options but if I can change name in console using :
Code:
setinfo name <NEWNAME>
This change is only temporary though, hence the requirement for SQL-Lite support.

I hope that clears up the request and that you or someone will give it a go.
__________________
Extreme_One is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 05-27-2008 , 09:04   Re: Auto Name Changer
Reply With Quote #6

Bump?
__________________
Extreme_One is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 05-27-2008 , 09:19   Re: [REQ] Auto Name Changer (TF2)
Reply With Quote #7

its not possible to execute setinfo on a client in TF2 AFAIK
__________________
toazron1 is offline
Send a message via AIM to toazron1
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 05-27-2008 , 15:10   Re: [REQ] Auto Name Changer (TF2)
Reply With Quote #8

Quote:
Originally Posted by toazron1 View Post
its not possible to execute setinfo on a client in TF2 AFAIK

Apparently bl4nk has it sussed.
__________________
Extreme_One is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 05-27-2008 , 15:19   Re: [REQ] Auto Name Changer (TF2)
Reply With Quote #9

Quote:
Originally Posted by Extreme_One View Post
Apparently bl4nk has it sussed.
Not exactly. The way Nephyrin has it working is that it doesn't issue the command on the client, it just handles the server-side stuff the same way as if the client were to change their name. Nothing gets changed on the client side, so if they go to a different server, they will retain their old name.
bl4nk is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 05-27-2008 , 15:39   Re: [REQ] Auto Name Changer (TF2)
Reply With Quote #10

Quote:
Originally Posted by bl4nk View Post
Not exactly. The way Nephyrin has it working is that it doesn't issue the command on the client, it just handles the server-side stuff the same way as if the client were to change their name. Nothing gets changed on the client side, so if they go to a different server, they will retain their old name.
ahh ok.

Well that method would be wholly compatible with my request
__________________
Extreme_One 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:36.


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