PDA

View Full Version : clantag blocker


mausetot
12-07-2011, 04:54
Hello,

is there a way to block the clantags from the scoreboard?
I found the clantagstripper-plugin, but this is not really what i need.
I only want to block the used steamgroup clantags.The plugin should not rename the player or remove parts of the players name.:wink:

Best regards mausetot

Mitchell
12-07-2011, 07:54
whats the difference of blocking and removing the parts of the tag?

hleV
12-07-2011, 08:19
Should work. Requires cssclantags.inc (search).
#include <sourcemod>
#include <cssclantags>

public Plugin:myinfo =
{
name = "Clan Tag Blocker",
description = "Removes text from players' clan tags",
author = "hleV",
version = "1.0",
url = "N/A"
};

public OnClientPutInServer(client)
CreateTimer(0.5, OnDelayedClientPutInServer, client);

public Action:OnDelayedClientPutInServer(Handle:time r, any:client)
if (IsClientInGame(client))
CS_SetClientClanTag(client, "");

Impact123
12-07-2011, 08:39
Requires cssclantags.inc (search).
This is included in the cstrike.inc (http://docs.sourcemod.net/api/index.php?fastload=show&id=1017&), was included in 1.4 (http://wiki.alliedmods.net/SourceMod_1.4.0_API_Changes#CStrike)

Yours sincerely
Impact

mausetot
12-07-2011, 09:58
thank you very much, i´ll try it

@mitchell: the idea was to change the names of the registered DG-community members to their nicknames (plugin written by hlev). i.e. i join with the name <°)))>(, and my name changes automaticely to :myclanname:.
if anybody has a clantag from a steamgroup the scoreboard looks like:

clantag|name
|___ |:hfgjsf:
|___ |:lkfusifhwesfweh:
|___ |:öfjsjfjf:
|___ |:feoiufowefowefwe:
|___ |:lfhehfhwef:
clantag:kdfsd:
|___ |:kfkdfs:
clantag:kdjhfhskfhkg:

-not very beautifull, that looks much better:
clantag|name
|___ |:hfgjsf:

|___ |:lkfusifhwesfweh:
|___ |:öfjsjfjf:
|___ |:feoiufowefowefwe:
|___ |:lfhehfhwef:
|___ |:kdfsd:
|___ |:kfkdfs:
|___ |:kdjhfhskfhkg:

:avast:

if the community member has a clantag included in his nick, this will change with the hlev´s namechangeplugin

p.s. sorry for the many lines, the forum kills my spaces^^



[edit]: Sorry, doesn´t work...

Mitchell
12-09-2011, 23:59
Makes more sense i guess so you want it to only show your clan tag or something? like so if some one dosent have it set as their clan tag but the user is in the group it still sets it to the tag? (spoofing it)

mausetot
12-10-2011, 03:52
i dont want any clantag, cause our members who are playing on our server are "marked" with the ":" before and after the nick. blocking the tags is only for the better looking of the scoreboard :)