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

Auto Name Changer - "unnamed"/New Player Name [23rd Jun 08]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Plugin ID:
403
Plugin Version:
3.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    We were all called unnamed once! This plugin changes the name to something a little more useful to a newbie player
    Old 05-30-2008 , 20:47   Auto Name Changer - "unnamed"/New Player Name [23rd Jun 08]
    Reply With Quote #1

    Auto Name Changer

    Purpose
    We were all "unnamed" once and this plug-in automatically changes a players name when they connect (and only connect) to something a little more useful to a newbie, such as:

    Press ESC > Options > Set Name

    This plugin now has the option to change the name as a cvar, thus for example you wanted to auto change the name in Eternal Silence, alter the convar sm_autoname_ntc to "ES Newbie"

    I had been using a simple script using the sm_name command and thought it was about time I did it properly as I cannot be on 12 game servers at the same time.

    Convars
    sm_autoname_version - Version duh
    sm_autoname_name - This is set to "Press ESC > Options > Set Name" by default
    sm_autoname_ntc - Default: "unnamed" - Change this to "ES Newbie" if using Eternal Silence mod

    Installation
    Pop the autonamechanger.smx file in your <mod dir>/addons/scourcemod/plugins directory

    Notes
    I never intend for this plug-in to check for people changing their name to unnamed while in game, only when they connect; That is not the aim of this plug-in at all [checking for chnages]. Its there to HELP a new n00blet.

    Suggestions
    Open to all with the exclusion of the above

    Version History
    1.0 - First release
    2.0 - Now checks anywhere in the name for "unnamed", thus if a player with the name of "(1000001)unnamed" connects, it gets changed. Although only likely to be "(1)unnamed" or "(2)unnamed".
    3.0 - Updated with new cvar to change the name to be checked as the mod requires

    Thanks To
    Tsunami & a the layout from one of bl4nk's plug-ins
    Attached Files
    File Type: sp Get Plugin or Get Source (autonamechanger.sp - 8440 views - 2.6 KB)
    __________________

    Last edited by MoggieX; 06-23-2008 at 15:07. Reason: I am a nub
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    Manni
    Senior Member
    Join Date: Nov 2007
    Location: Germany
    Old 05-30-2008 , 23:36   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #2

    Hi.

    Nice plugin.

    Does this also prevent this;
    (more and more people connect to the servers as "unconnected", then they are not kick & ban able via !commands or menu nor visible in the console, if you type "status")?

    i guess not. The real name isn't "unconnected", they only appear as "unconnected"
    Hmhm
    Manni is offline
    Send a message via ICQ to Manni
    Fenrix
    Member
    Join Date: Mar 2008
    Old 05-31-2008 , 00:05   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #3

    you wouldnt be able to enable an option to randomly pick a name from a list by anychance? ( i just IP ban any UNCONNECTED players so they can't see my server anymore)
    Fenrix is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 05-31-2008 , 00:42   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #4

    Unconnected players are people who are partially connected to the server but dont authenticate. It has happened to me before. It takes bad lag to do it. But then again im not sure if thats the reason, could be a glitch/hack.
    __________________

    DontWannaName is offline
    Fenrix
    Member
    Join Date: Mar 2008
    Old 05-31-2008 , 07:13   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #5

    my server just got crashed by an unconnected player and me and the regulars just figured out how to do it ourselves, its not something I will tell in a public forum but it can be replicated and done VERY easily.

    if you want to know how its done give me a pm.

    as for the unnamed one its not really the same as the unconnected glitch
    Fenrix is offline
    Lapoxickle
    Junior Member
    Join Date: May 2008
    Old 05-31-2008 , 07:57   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #6

    Could you please add support for kicking/banning people with Unconnected names also? already been said that they appear as just a blank name in status, this would be much appreciated as the influx of abusers mic spamming and generally trying to kill off servers is getting annoying now
    Lapoxickle is offline
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 05-31-2008 , 09:50   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #7

    Interesting as we've only had very minor issues with nub-cakes joining as " " and unconnected.

    It should be easy to add a check for " " and "unconnected", although for "unconnected" I am caucious as that would normaly indicate that the player hasn't connected properly and may not even hit the event that I'm using to check a players name.

    I'll put something together in a few minutes, if one of you would like to try it out and post back the results.

    Matt
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 05-31-2008 , 10:03   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #8

    Try the attached.

    If they join as " ", it changes thier name, prints to chat and kicks

    If they join as "unconnected", it prints to chat and kicks

    Note it looks right, but I have not tested it

    Matt
    __________________

    Last edited by MoggieX; 05-31-2008 at 10:13.
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    Lapoxickle
    Junior Member
    Join Date: May 2008
    Old 05-31-2008 , 10:08   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #9

    I would test it but i get: "Plugin failed to compile! Please try contacting the author." when trying to download
    Lapoxickle is offline
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 05-31-2008 , 10:14   Re: "unnamed" - Auto Name Changer [31 May 08]
    Reply With Quote #10

    Quote:
    Originally Posted by Lapoxickle View Post
    I would test it but i get: "Plugin failed to compile! Please try contacting the author." when trying to download
    Yea I got the same, will try later when I'm back on my main machine.

    Matt
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    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 02:02.


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