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

NameTag on scoreboard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rainbowbow
Junior Member
Join Date: Jun 2019
Old 07-16-2019 , 07:04   NameTag on scoreboard
Reply With Quote #1

i need a plugin that changes your name not clan tag!


https://gyazo.com/26e2651bd5ed734ff3a654d114c40e05 example the #91 is a plugin example:

/ban #91 0 test

if anyone want to help hit me up Rainbowbow#4100
Rainbowbow is offline
Rainbowbow
Junior Member
Join Date: Jun 2019
Old 07-16-2019 , 07:05   Re: NameTag on scoreboard
Reply With Quote #2

i have one already but its broken and there is no sourcecode
Rainbowbow is offline
Wyon
Junior Member
Join Date: Mar 2018
Old 07-16-2019 , 10:00   Re: NameTag on scoreboard
Reply With Quote #3

You just need to add players userid to his nick?

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

public void OnClientConnected(int iClient)
{
	RenamePlayer(iClient);
}

public void OnClientSettingsChanged(int iClient)
{
	RenamePlayer(iClient);
}

RenamePlayer(int iClient)
{
	char sName[256];
	GetClientName(iClient, sName, sizeof(sName));

	char sTag[16];
	Format(sTag, sizeof(sTag), "[#%i]", GetClientUserId(iClient))

	if (StrContains(sName, sTag, false) == -1)
	{
		Format(sName, sizeof(sName), "%s %s", sTag, sName);
		SetClientInfo(iClient, "name", sName);
	}
}

Last edited by Wyon; 07-16-2019 at 10:12.
Wyon 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 00:59.


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