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

REQ: User can change his name for server only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mazdarx8
Veteran Member
Join Date: Aug 2014
Old 02-22-2016 , 07:10   REQ: User can change his name for server only
Reply With Quote #1

Hi,

I am looking for a simple namechange plugin.
User can change his name with !changename <Username>.

Like the !rename system from Sourcemod.

Thank you.
mazdarx8 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-22-2016 , 10:15   Re: REQ: User can change his name for server only
Reply With Quote #2

Here's a wrapper around the SetClientName() function.
Attached Files
File Type: sp Get Plugin or Get Source (self_rename.sp - 314 views - 703 Bytes)
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
mazdarx8
Veteran Member
Join Date: Aug 2014
Old 02-22-2016 , 10:57   Re: REQ: User can change his name for server only
Reply With Quote #3

It doesnt work for me. It do just nothing..
mazdarx8 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 02-23-2016 , 00:16   Re: REQ: User can change his name for server only
Reply With Quote #4

It will do nothing if you don't specify a name to change to, obviously. Use sm_changename <name> in console or *changename <name> in chat, where * is the string defined as the PublicChatTrigger or SilentChatTrigger defined in sourcemod/configs/core.cfg. If you have either of those as an empty string, then it also won't work as that particular type of chat trigger.

Other than that, make sure the plugin and SDKTools are properly installed. What game are you running, anyways?
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 02-23-2016 at 02:27.
nosoop 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 04:04.


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