AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   need small plugins for func_button (https://forums.alliedmods.net/showthread.php?t=168115)

sb123 09-24-2011 09:04

need small plugins for func_button
 
my deathrun many maps need button delay

{
"model" "*37"
"wait" "3"
"speed" "5"
"target" "trap10"
"rendercolor" "0 0 0"
"renderamt" "255"
"angles" "0 0 0"
"spawnflags" "1"
"classname" "func_button"
}

just changed "wait" "3" to "wait" "12"

if wait 3,the T will keep press button

bibu 09-24-2011 09:18

Re: need small plugins for func_button
 
Which map is that?

sb123 09-24-2011 09:20

Re: need small plugins for func_button
 
many

like
deathrun_herb
deathrun_hybrid
more.....
Use Button Once i trying ,not work fine for me

ConnorMcLeod 09-24-2011 09:25

Re: need small plugins for func_button
 
If this plugin : http://forums.alliedmods.net/showthread.php?p=874660
doesn't suit your needs
try this :

PHP Code:

#include <amxmodx>
#include <fakemeta>

/* * Settings :
 * */
const Float:g_flMinButtonDelay 12.0
/* * End of Settings !!
 * */

const XO_BUTTON 4
const m_flWait 44

public plugin_init()
{
    
register_plugin("Min Buttons Delay""0.0.1""ConnorMcLeod")

    new 
iEnt FM_NULLENT
    
while( ( iEnt engfunc(EngFunc_FindEntityByStringiEnt"classname""func_button") ) )
    {
        if( 
get_pdata_float(iEntm_flWaitXO_BUTTON) < g_flMinButtonDelay )
        {
            
set_pdata_float(iEntm_flWaitg_flMinButtonDelayXO_BUTTON)
        }
    }



sb123 09-24-2011 09:36

Re: need small plugins for func_button
 
yes i try Buttons Delay Editor and Use Button Once
but not work fine for me

i tested you plugins,very great!

thanks

xPaw 09-24-2011 09:47

Re: need small plugins for func_button
 
Quote:

Originally Posted by sb123 (Post 1562197)
yes i try Buttons Delay Editor and Use Button Once

You're doing it wrong then. I have been using Buttons Delay Editor on my deathrun server, and it works just fine.

sb123 09-25-2011 05:33

Re: need small plugins for func_button
 
Quote:

Originally Posted by xPaw (Post 1562204)
You're doing it wrong then. I have been using Buttons Delay Editor on my deathrun server, and it works just fine.

Buttons Delay Editor need edit Buttons one by one
but i have so many maps
that is so tired


All times are GMT -4. The time now is 22:59.

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