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

[CSGO] Block Chat Wheel


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Minfas
Member
Join Date: Dec 2017
Plugin ID:
7402
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks the chat wheel command
    Old 12-03-2020 , 19:31   [CSGO] Block Chat Wheel
    Reply With Quote #1

    Block chat wheel
    Spoiler


    Blocks the chat wheel command. Chat wheel can be opened but no sound, radio messages and visual is coming from it.

    Code on GitHub
    Attached Files
    File Type: sp Get Plugin or Get Source (pingblocker.sp - 11299 views - 873 Bytes)

    Last edited by Minfas; 12-03-2020 at 20:39. Reason: update
    Minfas is offline
    Sples1
    Senior Member
    Join Date: Apr 2016
    Location: Kitsune Lab
    Old 12-03-2020 , 20:29   Re: [CSGO] Block Chat Wheel
    Reply With Quote #2

    For Radio blocks too...

    Code:
    public void OnPluginStart()
    {
    	HookUserMessage(GetUserMessageId("RadioText"), BlockRadio, true);
    
    	AddCommandListener(Command_Ping, "chatwheel_ping");
    	AddCommandListener(Command_Ping, "player_ping");
    }
    
    public Action Command_Ping(int client, const char[] command, int args)
    {
    	return Plugin_Handled;
    }
    
    public Action BlockRadio(UserMsg msg_id, Protobuf bf, const int[] players, int playersNum, bool reliable, bool init)
    {
    	char buffer[64];
    	PbReadString(bf, "params", buffer, sizeof(buffer), 0);
    
    	if (StrContains(buffer, "#Chatwheel_"))
    	{
    		return Plugin_Handled;
    	}
    	return Plugin_Continue;
    }
    __________________
    Developer & Scripter from Kitsune Lab
    Contact me: Steam | My Plugins | Kitsune Lab

    Join to the community on our Discord server.
    I stopped public develops. My old/new plugins available ONLY for my Discord community.

    Last edited by Sples1; 12-03-2020 at 20:39.
    Sples1 is offline
    raj kaul
    Senior Member
    Join Date: Mar 2018
    Location: www.lotgaming.xyz
    Old 12-03-2020 , 20:29   Re: [CSGO] Block Chat Wheel
    Reply With Quote #3

    thanks
    __________________
    raj kaul is offline
    Minfas
    Member
    Join Date: Dec 2017
    Old 12-03-2020 , 20:39   Re: [CSGO] Block Chat Wheel
    Reply With Quote #4

    Quote:
    Originally Posted by Sples1 View Post
    For Radio blocks too...

    Code:
    public void OnPluginStart()
    {
    	HookUserMessage(GetUserMessageId("RadioText"), BlockRadio, true);
    
    	AddCommandListener(Command_Ping, "chatwheel_ping");
    	AddCommandListener(Command_Ping, "player_ping");
    }
    
    public Action Command_Ping(int client, const char[] command, int args)
    {
    	return Plugin_Handled;
    }
    
    public Action BlockRadio(UserMsg msg_id, Protobuf bf, const int[] players, int playersNum, bool reliable, bool init)
    {
    	char buffer[64];
    	PbReadString(bf, "params", buffer, sizeof(buffer), 0);
    
    	if (StrContains(buffer, "#Chatwheel_"))
    	{
    		return Plugin_Handled;
    	}
    	return Plugin_Continue;
    }
    Updated with your code, thanks for addition.
    __________________
    Founder of LEXTEN CZ/SK JailBreak
    Minfas is offline
    Sples1
    Senior Member
    Join Date: Apr 2016
    Location: Kitsune Lab
    Old 12-03-2020 , 20:42   Re: [CSGO] Block Chat Wheel
    Reply With Quote #5

    Quote:
    Originally Posted by Minfas View Post
    Updated with your code, thanks for addition.
    No problem! I was thinking about to do it, so it's good for me too. <3
    __________________
    Developer & Scripter from Kitsune Lab
    Contact me: Steam | My Plugins | Kitsune Lab

    Join to the community on our Discord server.
    I stopped public develops. My old/new plugins available ONLY for my Discord community.
    Sples1 is offline
    entervoid
    Junior Member
    Join Date: Jul 2017
    Old 12-04-2020 , 11:51   Re: [CSGO] Block Chat Wheel
    Reply With Quote #6

    It seems that hooking the radio text message not only blocks the new chat wheel commands, but also
    all the regular radio commands. Is this intentional behavior?

    Just to be sure I removed all of my custom plugins to rule out anything that could interfere with this plugin, still doesn't work properly, it keeps blocking all radio commands

    Does someone experience the same issue?
    entervoid is offline
    gerenda110
    Member
    Join Date: Sep 2013
    Old 12-04-2020 , 13:44   Re: [CSGO] Block Chat Wheel
    Reply With Quote #7

    My server still crashing in warmup... Whyyyyy?
    gerenda110 is offline
    lce
    Junior Member
    Join Date: Feb 2019
    Old 12-04-2020 , 14:46   Re: [CSGO] Block Chat Wheel
    Reply With Quote #8

    Quote:
    Originally Posted by Sples1 View Post
    For Radio blocks too...

    Code:
    public void OnPluginStart()
    {
    	HookUserMessage(GetUserMessageId("RadioText"), BlockRadio, true);
    
    	AddCommandListener(Command_Ping, "chatwheel_ping");
    	AddCommandListener(Command_Ping, "player_ping");
    }
    
    public Action Command_Ping(int client, const char[] command, int args)
    {
    	return Plugin_Handled;
    }
    
    public Action BlockRadio(UserMsg msg_id, Protobuf bf, const int[] players, int playersNum, bool reliable, bool init)
    {
    	char buffer[64];
    	PbReadString(bf, "params", buffer, sizeof(buffer), 0);
    
    	if (StrContains(buffer, "#Chatwheel_"))
    	{
    		return Plugin_Handled;
    	}
    	return Plugin_Continue;
    }
    Instead of that last bit, you could just block the playerchatwheel and playerradio console commands, since they are what the chatwheel uses to print the radio commands. In addition, this way would also block players from using custom radio messages with the commands (which can also be colored by the player, unlike normal chat messages).

    Last edited by lce; 12-04-2020 at 17:59.
    lce is offline
    Sples1
    Senior Member
    Join Date: Apr 2016
    Location: Kitsune Lab
    Old 12-04-2020 , 19:05   Re: [CSGO] Block Chat Wheel
    Reply With Quote #9

    Thanks for the tip!
    Attached Files
    File Type: sp Get Plugin or Get Source (chatwheel_blocker.sp - 580 views - 502 Bytes)
    File Type: smx chatwheel_blocker.smx (2.7 KB, 287 views)
    __________________
    Developer & Scripter from Kitsune Lab
    Contact me: Steam | My Plugins | Kitsune Lab

    Join to the community on our Discord server.
    I stopped public develops. My old/new plugins available ONLY for my Discord community.
    Sples1 is offline
    ShD3luxe
    Member
    Join Date: Aug 2019
    Location: Localhost
    Old 12-06-2020 , 18:49   Re: [CSGO] Block Chat Wheel
    Reply With Quote #10

    It's there a way to create a custom wheel ? Maybe with protobuf ?
    I could not find the user message here: https://wiki.alliedmods.net/Counter-...e_UserMessages .

    Thanks for the plugin
    ShD3luxe 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 14:11.


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