Raised This Month: $101 Target: $400
 25% 

[CSS] Block grenade radio message and sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 07-08-2015 , 15:19   [CSS] Block grenade radio message and sound
Reply With Quote #1

Hello

How can i block all grande radio message and sound ?

Thank you in advance
NeXoU is offline
R1KO
Member
Join Date: Sep 2013
Old 07-08-2015 , 15:33   Re: [CSS] Block grenade radio message and sound
Reply With Quote #2

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>

public OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("RadioText"), UserMsgRadioTexttrue);
    
HookUserMessage(GetUserMessageId("SendAudio"), UserMsgSendAudiotrue);
}

public 
Action:UserMsgSendAudio(UserMsg:msg_idHandle:bf, const players[], playersNumbool:reliablebool:init)
{
    
decl String:sBuffer[128];
    
BfReadString(bfsBuffersizeof(sBuffer));

    if(
strcmp(sBuffer"Radio.FireInTheHole"false) == 0)
    {
        return 
Plugin_Handled;
    }

    return 
Plugin_Continue;
}

public 
Action:UserMsgRadioText(UserMsg:msg_idHandle:bf, const players[], playersNumbool:reliablebool:init)
{
    
decl String:sBuffer[128];

    
BfReadWord(bf);
    
BfReadString(bfsBuffersizeof(sBuffer));
    if(
strcmp(sBuffer"#Game_radio_location"false) == 0)
    {
        
BfReadString(bfsBuffersizeof(sBuffer));
    }
    
BfReadString(bfsBuffersizeof(sBuffer));
    
BfReadString(bfsBuffersizeof(sBuffer));

    if(
strcmp(sBuffer"#Cstrike_TitlesTXT_Fire_in_the_hole"false) == 0)
    {
        return 
Plugin_Handled;
    }

    return 
Plugin_Continue;

CS:GO not support

Last edited by R1KO; 07-08-2015 at 18:06.
R1KO is offline
Send a message via Skype™ to R1KO
NeXoU
Junior Member
Join Date: Jan 2014
Location: France
Old 07-08-2015 , 17:54   Re: [CSS] Block grenade radio message and sound
Reply With Quote #3

Thank you ;)
NeXoU is offline
Reply


Thread Tools
Display Modes

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 05:11.


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