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

[EXTENSION][CS:S]Name Change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-26-2010 , 13:27   [EXTENSION][CS:S]Name Change
Reply With Quote #1

This extension allows you to change a players name [via SetClientInfo(client, "name", "This Is My New Name")]

Player name change events will NOT be fired at all as the function that calls the name change event is detoured and blocked. I will at some point soon create a plugin that will still fire the event as well as not block the function if the name change wasnt done by sm_rename command.

The forward for the plugins is already added.

PHP Code:
forward Action:OnChangePlayerName(clientString:name[], String:oldname[]) 
The extension by default will block the function!! This is so that only the extension is required to have the name change capability. If you dont want the function blocked in a plugin you MUST return Plugin_Continue.

Post any bugs and i will try to fix them as quickly as i can.

Source code is in the namechange_source.zip

Server owners ONLY need namechange.zip

THANKS:
psychonic for answering all of my questions and pointing out tf2 allowed server to make name changes.
Attached Files
File Type: zip namechange-src.zip (25.1 KB, 427 views)
File Type: zip namechange.zip (55.8 KB, 532 views)

Last edited by Dr!fter; 03-19-2013 at 13:29.
Dr!fter is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 12-26-2010 , 15:06   Re: [EXTENSION][OB]Name Change
Reply With Quote #2

Well I think changing name works out of the box with sm_rename.
__________________
FaTony is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-26-2010 , 15:21   Re: [EXTENSION][OB]Name Change
Reply With Quote #3

Quote:
Originally Posted by FaTony View Post
Well I think changing name works out of the box with sm_rename.
Dosnt for CS:S (It does for tf2 psychonic just informed me) I hadnt tested it prior in tf2. I just made changes and made it CS:S specific. It seems its only CS:S where it dosnt work. I thought it was all Orabgebox games.

Last edited by Dr!fter; 12-26-2010 at 15:24.
Dr!fter is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 12-26-2010 , 15:34   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #4

sm_rename also works on L4D.
__________________
FaTony is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-26-2010 , 16:20   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #5

Quote:
Originally Posted by FaTony View Post
sm_rename also works on L4D.
Never said it didnt Also Linux version now available.
Dr!fter is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 12-27-2010 , 00:16   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #6

You need a ; on
PHP Code:
forward Action:OnChangePlayerName(clientString:name[], String:oldname[]) 
Edit: Did this rather quick, however I didn't find any immediate issues with it.
Attached Files
File Type: sp Get Plugin or Get Source (Rename2.sp - 1089 views - 3.3 KB)

Last edited by KyleS; 12-27-2010 at 02:03.
KyleS is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-27-2010 , 10:01   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #7

I updated the include file. I did the include file very quickly.

Also my way of doing it was going to be AddCommandlistener for sm_rename. But that wouldnt work for the menu option.
Dr!fter is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 12-31-2010 , 00:51   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #8

Will this ever support fully changing the name? Since ob sets names via steam friends .... on map change and reconnect it reverts back
Doc-Holiday is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 12-31-2010 , 08:32   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #9

Just change it again on map change.
__________________
FaTony is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 12-31-2010 , 17:11   Re: [EXTENSION][CS:S]Name Change
Reply With Quote #10

Quote:
Originally Posted by Doc-Holiday View Post
Will this ever support fully changing the name? Since ob sets names via steam friends .... on map change and reconnect it reverts back
This would be very malicious if you could.
KyleS 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 03:56.


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