Ok. Now i got a new problem. The door exploses continously... (even round 1)
Here is my code. Is there anything wrong ?
PHP Code:
public plugin_precache()
{
register_forward(FM_Spawn, "fw_Spawn")
}
public fw_Spawn(ent)
{
if(!pev_valid(ent))
return FMRES_IGNORED
static ClassName[32], Target[64]
pev(ent, pev_classname, ClassName, charsmax(ClassName))
pev(ent, pev_target, Target, sizeof(Target))
if(equal(ClassName, "trigger_once") && equal(Target, "start"))
{
static NewEntity, Float:Origin[3], String[64]
NewEntity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "trigger_multiple"))
fm_set_kvd(NewEntity, "model", "*101")
fm_set_kvd(NewEntity, "target", "start")
fm_set_kvd(NewEntity, "style", "32")
dllfunc(DLLFunc_Spawn, NewEntity)
Big = 1
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}