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

Custom VIP Tag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LionKing
Member
Join Date: Jan 2017
Location: Belgium
Old 10-06-2019 , 08:14   Custom VIP Tag
Reply With Quote #1

Hello everyone I'm searching for a plugin that let's you customize your own chat tag!

It works like this:
sm_tag {darkred}Testing
/tag {darkred}Testing

And would give an output like this:
[Testing] LeonKong: hello world!

Also would be cool if it were to be restricted by flags.
LionKing is offline
Stugger
Member
Join Date: Sep 2007
Old 10-06-2019 , 16:50   Re: Custom VIP Tag
Reply With Quote #2

You can mimic the functionality of sourcemods sm_rename command. Here's a very simple way of doing it (This doesn't include coloring or error-handling though)

Code:
#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
        RegAdminCmd("sm_tag", Cmd_SetTag, ADMFLAG_CHAT, "Set your name tag");
}

public Action Cmd_SetTag(client, args)
{
	char tag[16], cName[32], cNameTagged[48];

	GetCmdArg(1, tag, sizeof(tag));
	
	GetClientName(client, cName, sizeof(cName));

	Format(cNameTagged, sizeof(cNameTagged), "[%s] %s", tag, cName); 
	
	SetClientName(client, cNameTagged);
}
sm_tag <tag> example: sm_tag Testing output: [Testing] Stugger: hello

Last edited by Stugger; 10-06-2019 at 16:56.
Stugger is offline
LionKing
Member
Join Date: Jan 2017
Location: Belgium
Old 10-06-2019 , 17:16   Re: Custom VIP Tag
Reply With Quote #3

Yeah but I need it fully and well coded.
Willing to pay for it if it isn't that much.
LionKing is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 10-08-2019 , 20:53   Re: Custom VIP Tag
Reply With Quote #4

Sent you a PM.
__________________
ThatOneGuy 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 17:37.


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