splewis / csgo-multi-1v1

CS:GO Sourcemod plugin to create multi-1v1 arena servers
GNU General Public License v3.0
278 stars 68 forks source link

Lock clan tag to arena number #117

Open keigel2001 opened 9 years ago

keigel2001 commented 9 years ago

As of late a new trend on some arenas is happening. Some players are changing their clantags very fast. Here's an example of the logs:

L 08/25/2015 - 17:38:23: "kN<621>" triggered "clantag" (value "Triggerbot.") L 08/25/2015 - 17:38:23: "KeeeqZ<630>" triggered "clantag" (value "Triggerbot?") L 08/25/2015 - 17:38:23: "kN<621>" triggered "clantag" (value "Spinbot.") L 08/25/2015 - 17:38:23: "kN<621>" triggered "clantag" (value "Wallhack") L 08/25/2015 - 17:38:23: "KeeeqZ<630>" triggered "clantag" (value "Triggerbot?") L 08/25/2015 - 17:38:23: "kN<621>" triggered "clantag" (value "Wallhack") L 08/25/2015 - 17:38:23: "kN<621>" triggered "clantag" (value "Spinbot.") L 08/25/2015 - 17:38:23: "KeeeqZ<630>" triggered "clantag" (value "Triggerbot?") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Wallhack?") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Spinbot?") L 08/25/2015 - 17:38:24: "kN<621>" triggered "clantag" (value "Aimbot .") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Spinbot?") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Wallhack?") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Triggerbot?") L 08/25/2015 - 17:38:24: "kN<621>" triggered "clantag" (value "Aimbot .") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Wallhack?") L 08/25/2015 - 17:38:24: "kN<621>" triggered "clantag" (value "Aimbot .") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Spinbot?") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Spinbot?") L 08/25/2015 - 17:38:24: "KeeeqZ<630>" triggered "clantag" (value "Wallhack?") L 08/25/2015 - 17:38:25: "kN<621>" triggered "clantag" (value "Aimbot .") L 08/25/2015 - 17:38:25: "KeeeqZ<630>" triggered "clantag" (value "Wallhack?") L 08/25/2015 - 17:38:25: "KeeeqZ<630>" triggered "clantag" (value "Spinbot?") L 08/25/2015 - 17:38:25: "KeeeqZ<630>" triggered "clantag" (value "Spinbot?") L 08/25/2015 - 17:38:25: "KeeeqZ<630>" triggered "clantag" (value "Wallhack?") L 08/25/2015 - 17:38:25: "kN<621>" triggered "clantag" (value "Spinbot.") L 08/25/2015 - 17:38:25: "kN<621>" triggered "clantag" (value "Wallhack")

It's really annoying. I asked one of them how they are doing this. It's a double bind:

bind "a" "+moveleft;cl_clanid 9812555" bind "d" "+moveright;cl_clanid 9812565" bind "s" "+back;cl_clanid 9812576" bind "w" "+forward;cl_clanid 9812596"

Is there any way to prevent this? Especially on arena nobody should be able to change a clantag (this often).

splewis commented 9 years ago

I'd be fine with a feature that blocks changing the clan tag (or at least changes it back so it is effectively never visibly changing).

I can't find a way to do that other than resetting all the clan tags every x seconds, however.

keigel2001 commented 9 years ago

If you can't find a better solution I'll try contacting the SMAC developers. I think Client Protection - smac_client.smx is the right place then. They also protect against multiple name changes and could enhance it a bit.

icon315 commented 8 years ago

@splewis

public Action OnClientCommandKeyValues(int client, KeyValues kv) { char sCmd[64]; if (kv.GetSectionName(sCmd, sizeof(sCmd)) && StrEqual(sCmd, "ClanTagChanged", false)) { return Plugin_Handled; }

return Plugin_Continue;

}

This should work.

crashzk commented 5 years ago

@plewis

public Action OnClientCommandKeyValues ​​(cliente int, KeyValues ​​kv) { char sCmd [64]; if (kv.GetSectionName (sCmd, sizeof (sCmd)) e& StrEqual (sCmd, "ClanTagChanged", false)) { return Plugin_Handled; }

return Plugin_Continue;

}

This should work.

I did a test and it worked for me, in case I am using it on my competitive servers, to avoid the tag exchange binds.