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

radio commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yunuss85
Member
Join Date: Dec 2015
Location: Istanbul
Old 05-14-2017 , 06:42   radio commands
Reply With Quote #1

hello, how i can disable raido say commands on my server cs 1.6?

I just want to turn off say message.

Thnx.
__________________
yunuss85 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2017 , 13:37   Re: radio commands
Reply With Quote #2

How is say message connected with the radio? You need a plugin for this.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Depresie
Veteran Member
Join Date: Nov 2013
Old 05-15-2017 , 13:43   Re: radio commands
Reply With Quote #3

Try this
PHP Code:
#include <amxmodx>

public plugin_init()
{
        
register_plugin("Block Radio Commands"1.0"Author")
        
register_clcmd("radio1""clcmd_handle_radio")
        
register_clcmd("radio2""clcmd_handle_radio")
        
register_clcmd("radio3""clcmd_handle_radio")
}

public 
clcmd_handle_radio()
{
        return 
PLUGIN_HANDLED_MAIN

__________________
Depresie is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 05-17-2017 , 09:24   Re: radio commands
Reply With Quote #4

https://github.com/In-line/amxx_plug...radio_text.sma

Code:
/*  * Block Radio Text  * Copyright (c) 2017 Alik Aslanyan <[email protected]>  *  *  *  *    This program is free software; you can redistribute it and/or modify it  *    under the terms of the GNU General Public License as published by the  *    Free Software Foundation; either version 2 of the License, or (at  *    your option) any later version.  *  *    This program is distributed in the hope that it will be useful, but  *    WITHOUT ANY WARRANTY; without even the implied warranty of  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  *    General Public License for more details.  *  *    You should have received a copy of the GNU General Public License  *    along with this program; if not, write to the Free Software Foundation,  *    Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  *  */ #include <amxmodx> #define PLUGIN "Block Radio Text" #define VERSION "1.0" #define AUTHOR "Inline" new Trie:g_searchDictionary = Invalid_Trie; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_message(get_user_msgid("TextMsg"), "mBlockRadioMessage");     InitTrie(); } public plugin_end() {     TrieDestroy(g_searchDictionary); } InitTrie() {     g_searchDictionary = TrieCreate();     /*by ConnorMcLead*/     new const radioMessages[][] =     {         "#Cover_me",         "#You_take_the_point",         "#Hold_this_position",         "#Regroup_team",         "#Follow_me",         "#Taking_fire",         "#Go_go_go",         "#Team_fall_back",         "#Stick_together_team",         "#Get_in_position_and_wait",         "#Storm_the_front",         "#Report_in_team",         "#Roger_that",         "#Affirmative",         "#Enemy_spotted",         "#Need_backup",         "#Sector_clear",         "#In_position",         "#Reporting_in",         "#Get_out_of_there",         "#Negative",         "#Enemy_down"     };         for(new i = 0; i < sizeof(radioMessages); ++i)     {         TrieSetCell(g_searchDictionary, radioMessages[i], 1);     } } public mBlockRadioMessage(msgID, dest, receiver) {     if(get_msg_arg_int(1) != 5)         return PLUGIN_CONTINUE;         static subMessage[64];     get_msg_arg_string(5, subMessage, charsmax(subMessage));     if(subMessage[0] == '#' && TrieKeyExists(g_searchDictionary, subMessage))     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }
PartialCloning 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 18:04.


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