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

No Radio Flood v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   Emp` (115)
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 06-12-2009 , 22:57   No Radio Flood v1.1
Reply With Quote #1

Description:

With this plugin, the people can't annoy with radio messages every two seconds

Cvars:

nrf_block_fith (0|1) Blocks 'Fire In The Hole' Sound, Default 1
nrf_time (Time in seconds 0 - Disabled) Time which people will have to wait to send another message radio, Default 5 seconds

Changelog:

v1.1:
-Removed Engine
-Added all commands Thanks hleV.
-Added cvar to block 'Fire In The Hole' Sound
v1.0: First release

Important:

Not Compatible with:

Custom Radio Commands by kaloszyfer
Teamplay Helper v1.2 by me

Servers with this plugin:
[Here]
Attached Files
File Type: sma Get Plugin or Get Source (no_radio_flood.sma - 6760 views - 1.8 KB)
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 08-13-2020 at 16:25.
Starsailor is offline
algoasi
Member
Join Date: Nov 2008
Location: Pluton
Old 06-12-2009 , 23:13   Re: Stop Radio Flood v1.0
Reply With Quote #2

Oh Goo job

Work!
algoasi is offline
Send a message via MSN to algoasi
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 06-12-2009 , 23:45   Re: Stop Radio Flood v1.0
Reply With Quote #3

WOOOOW

You Rocks (again) !!
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 06-12-2009 , 23:58   Re: Stop Radio Flood v1.0
Reply With Quote #4

good job!
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
kushy_mang
Junior Member
Join Date: May 2009
Old 06-13-2009 , 02:03   Re: Stop Radio Flood v1.0
Reply With Quote #5

Oh my god.. I will have to test this.. nice idea. Also if we set the cvar to block messages for 5 seconds.. does this include the usual "fire in the hole!" or is just radio commands
kushy_mang is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-13-2009 , 02:35   Re: Stop Radio Flood v1.0
Reply With Quote #6

You don't need to use engine if you use get_gametime.
Also, you should register like 23 radios cmds aliases.

You also have to know that there are existing offset to set the next time a player can use the radio and how many times a player can use it (reset to 60 when a player spawns).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-13-2009 , 03:37   Re: Stop Radio Flood v1.0
Reply With Quote #7

v1.1 (I wonder if setting a task after each radio cmd usage is faster than gametime):
Code:
#include <amxmodx> #include <engine>   #define PLUGIN "Stop Radio Flood" #define VERSION "1.1" #define AUTHOR "Starsailor"   new g_szRadio[][] = {         "radio1", "coverme", "takepoint", "holdpos", "regroup", "followme", "takingfire",         "radio2", "go", "fallback", "sticktog", "getinpos", "stormfront", "report",         "radio3", "roger", "enemyspot", "needbackup", "sectorclear", "inposition", "reportingin", "getout", "negative", "enemydown" };   new Float:gRadio[33],pTime,pEnabled   public plugin_init() {                 register_plugin(PLUGIN, VERSION, AUTHOR)           for (new i = 0; i < sizeof(g_szRadio); i++)                 register_clcmd(g_szRadio[i], "cmdRadio");           pTime = register_cvar("srf_time","5")         pEnabled = register_cvar("srf_enabled","1")           register_cvar("srf_version",VERSION,FCVAR_SERVER|FCVAR_SPONLY) } public cmdRadio(id){           if(get_pcvar_num(pEnabled)){                           new Float:fTime = halflife_time()                   if(fTime - gRadio[id] < get_pcvar_num(pTime)){                                   client_print(id,print_center,"** Stop flooding with radio **")                           return 1                 }                   gRadio[id] = fTime         }           return PLUGIN_CONTINUE }
__________________
hleV is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-13-2009 , 04:01   Re: Stop Radio Flood v1.0
Reply With Quote #8

tasks should not be used for cmds cooldown.

Removed engine and use only 1 cvar :

PHP Code:
#include <amxmodx>
 
#define PLUGIN "Stop Radio Flood"
#define VERSION "1.2"
#define AUTHOR "Starsailor"
 
new g_szRadio[][] =
{
    
"radio1""coverme""takepoint""holdpos""regroup""followme""takingfire",
    
"radio2""go""fallback""sticktog""getinpos""stormfront""report",
    
"radio3""roger""enemyspot""needbackup""sectorclear""inposition""reportingin""getout""negative""enemydown"
}
 
new 
Float:g_fNextRadio[33]
new 
g_pTime
 
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    for(new 
0sizeof(g_szRadio); i++)
    {
        
register_clcmd(g_szRadio[i], "cmdRadio")
    }

    
g_pTime register_cvar("srf_time","5"
}

public 
cmdRadio(id)
{
    new 
Float:fDelay get_pcvar_float(g_pTime)
    if( 
fDelay )
    {
        new 
Float:fTime get_gametime()

        if(
g_fNextRadio[id] > fTime)
        {
            
client_print(id,print_center,"** Stop flooding with radio **")
            return 
PLUGIN_HANDLED_MAIN
        
}
        
g_fNextRadio[id] = fTime fDelay
    
}
    return 
PLUGIN_CONTINUE

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-13-2009 at 04:57.
ConnorMcLeod is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-13-2009 , 04:16   Re: Stop Radio Flood v1.0
Reply With Quote #9

Love it!
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-13-2009 , 04:31   Re: Stop Radio Flood v1.0
Reply With Quote #10

Will never play on servers where its running
__________________
xPaw 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 03:04.


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