Raised This Month: $51 Target: $400
 12% 

[CS:GO] Radio Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KerimCMN
Member
Join Date: Jul 2018
Old 08-05-2018 , 17:52   [CS:GO] Radio Messages
Reply With Quote #1

I will remove my posts

Last edited by KerimCMN; 09-23-2018 at 23:07.
KerimCMN is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 08-06-2018 , 03:52   Re: [CS:GO] Radio Messages
Reply With Quote #2

PHP Code:
#include <sourcemod>

#pragma newdecls required
#pragma semicolon 1

bool gB_Allow[MAXPLAYERS 1];

public 
void OnPluginStart()
{
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Post);
    
    
AddCommandListener(CL_Radio"coverme");
    
AddCommandListener(CL_Radio"takepoint");
    
AddCommandListener(CL_Radio"holdpos");
    
AddCommandListener(CL_Radio"regroup");
    
AddCommandListener(CL_Radio"followme");
    
AddCommandListener(CL_Radio"takingfire");
    
AddCommandListener(CL_Radio"cheer");
    
AddCommandListener(CL_Radio"thanks");
    
AddCommandListener(CL_Radio"go");
    
AddCommandListener(CL_Radio"fallback");
    
AddCommandListener(CL_Radio"sticktog");
    
AddCommandListener(CL_Radio"getinpos");
    
AddCommandListener(CL_Radio"stormfront");
    
AddCommandListener(CL_Radio"report");
    
AddCommandListener(CL_Radio"roger");
    
AddCommandListener(CL_Radio"enemyspot");
    
AddCommandListener(CL_Radio"needbackup");
    
AddCommandListener(CL_Radio"sectorclear");
    
AddCommandListener(CL_Radio"inposition");
    
AddCommandListener(CL_Radio"reportingin");
    
AddCommandListener(CL_Radio"getout");
    
AddCommandListener(CL_Radio"negative");
    
AddCommandListener(CL_Radio"enemydown");
}

public 
void OnClientPostAdminCheck(int client) {
    
gB_Allow[client] = false;    
}

public 
Action CL_Radio(int client, const char[] sCmdint args)
{
    if (
client <= MaxClients && gB_Allow[client])
    {
        
gB_Allow[client] = false;
        return 
Plugin_Continue;    
    }
    return 
Plugin_Handled;    
}

public 
void Event_PlayerDeath(Event hEvent, const char[] sEventNamebool bDontBroadcast)
{
    
int attacker GetClientOfUserId(hEvent.GetInt("attacker"));
    
    if (
hEvent.GetInt("userid") != attacker && attacker <= MaxClients && IsClientInGame(attacker))
    {        
        
gB_Allow[attacker] = true;
        
FakeClientCommandEx(attacker"enemydown");
    }

Untested
__________________

Last edited by LenHard; 08-06-2018 at 03:56.
LenHard is offline
KerimCMN
Member
Join Date: Jul 2018
Old 08-06-2018 , 13:33   Re: [CS:GO] Radio Messages
Reply With Quote #3

I Want to test today bro <3 Thanks
KerimCMN is offline
KerimCMN
Member
Join Date: Jul 2018
Old 08-08-2018 , 10:37   Re: [CS:GO] Radio Messages
Reply With Quote #4

Bro this plugin is not working if i see one enemy and if i kill him in chat writing enemy is down :/
KerimCMN is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 08-08-2018 , 11:21   Re: [CS:GO] Radio Messages
Reply With Quote #5

http://lmgtfy.com/?q=csgo+radio+blocker+sourcemod
mug1wara is offline
KerimCMN
Member
Join Date: Jul 2018
Old 08-08-2018 , 11:27   Re: [CS:GO] Radio Messages
Reply With Quote #6

" Plugin/Gameplay Ideas and Requests "
KerimCMN is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 08-08-2018 , 20:40   Re: [CS:GO] Radio Messages
Reply With Quote #7

Quote:
Originally Posted by KerimCMN View Post
Bro this plugin is not working if i see one enemy and if i kill him in chat writing enemy is down :/
Is that not what you wanted? Block radio commands and trigger "enemy down" when you kill a player? Please be more clear.
__________________
LenHard is offline
KerimCMN
Member
Join Date: Jul 2018
Old 08-09-2018 , 13:44   Re: [CS:GO] Radio Messages
Reply With Quote #8

I want to block all radio messages with chat and with sounds :/
KerimCMN is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 08-09-2018 , 17:07   Re: [CS:GO] Radio Messages
Reply With Quote #9

Quote:
Originally Posted by KerimCMN View Post
I want to block all radio messages with chat and with sounds :/
PHP Code:
#include <sourcemod>

public void OnPluginStart()
{
    
AddCommandListener(CL_Radio"coverme");
    
AddCommandListener(CL_Radio"takepoint");
    
AddCommandListener(CL_Radio"holdpos");
    
AddCommandListener(CL_Radio"regroup");
    
AddCommandListener(CL_Radio"followme");
    
AddCommandListener(CL_Radio"takingfire");
    
AddCommandListener(CL_Radio"cheer");
    
AddCommandListener(CL_Radio"thanks");
    
AddCommandListener(CL_Radio"go");
    
AddCommandListener(CL_Radio"fallback");
    
AddCommandListener(CL_Radio"sticktog");
    
AddCommandListener(CL_Radio"getinpos");
    
AddCommandListener(CL_Radio"stormfront");
    
AddCommandListener(CL_Radio"report");
    
AddCommandListener(CL_Radio"roger");
    
AddCommandListener(CL_Radio"enemyspot");
    
AddCommandListener(CL_Radio"needbackup");
    
AddCommandListener(CL_Radio"sectorclear");
    
AddCommandListener(CL_Radio"inposition");
    
AddCommandListener(CL_Radio"reportingin");
    
AddCommandListener(CL_Radio"getout");
    
AddCommandListener(CL_Radio"negative");
    
AddCommandListener(CL_Radio"enemydown");
}

public 
Action CL_Radio(int client, const char[] sCmdint args) {
    return 
Plugin_Handled;    

__________________
LenHard 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:40.


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