AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION][CS:S]Name Change (https://forums.alliedmods.net/showthread.php?t=146289)

Dr!fter 12-26-2010 13:27

[EXTENSION][CS:S]Name Change
 
2 Attachment(s)
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.

FaTony 12-26-2010 15:06

Re: [EXTENSION][OB]Name Change
 
Well I think changing name works out of the box with sm_rename.

Dr!fter 12-26-2010 15:21

Re: [EXTENSION][OB]Name Change
 
Quote:

Originally Posted by FaTony (Post 1379489)
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.

FaTony 12-26-2010 15:34

Re: [EXTENSION][CS:S]Name Change
 
sm_rename also works on L4D.

Dr!fter 12-26-2010 16:20

Re: [EXTENSION][CS:S]Name Change
 
Quote:

Originally Posted by FaTony (Post 1379508)
sm_rename also works on L4D.

Never said it didnt :P Also Linux version now available.

KyleS 12-27-2010 00:16

Re: [EXTENSION][CS:S]Name Change
 
1 Attachment(s)
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.

Dr!fter 12-27-2010 10:01

Re: [EXTENSION][CS:S]Name Change
 
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.

Doc-Holiday 12-31-2010 00:51

Re: [EXTENSION][CS:S]Name Change
 
Will this ever support fully changing the name? Since ob sets names via steam friends .... on map change and reconnect it reverts back

FaTony 12-31-2010 08:32

Re: [EXTENSION][CS:S]Name Change
 
Just change it again on map change.

KyleS 12-31-2010 17:11

Re: [EXTENSION][CS:S]Name Change
 
Quote:

Originally Posted by Doc-Holiday (Post 1382851)
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.


All times are GMT -4. The time now is 08:05.

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