{
"model" "*2"
"targetname" "dr2"
"dmg" "1000"
"wait" "43"
"speed" "300"
"rendercolor" "0 0 0"
"renderamt" "255"
"angles" "0 270 0"
"classname" "func_door"
}
when the terrorist press Button
this trap need wait 43 sec so long
so i want if
"wait" > 21 sec then changed to 15 sec
i try this plugins but have error
SZ_GetSpaceverflow without FSB_ALLOWOVERFLOW set on Server Reliable Datag
PHP Code:
#include <amxmodx>
#include <fakemeta>
/* * Settings :
* */
const Float:g_flMindoorDelay = 10.0
/* * End of Settings !!
* */
const XO_door = 4
const d_flWait = 44
public plugin_init()
{
register_plugin("Min door Delay", "0.0.1", "ConnorMcLeod")
new iEnt = FM_NULLENT
while( ( iEnt = engfunc(EngFunc_FindEntityByString, iEnt, "classname", "func_door") ) )
{
if( get_pdata_float(iEnt, d_flWait, XO_door) > g_flMindoorDelay )
{
set_pdata_float(iEnt, d_flWait, g_flMindoorDelay, XO_door)
}
}
}