Code:
public plugin_init()
{
register_plugin( "GodDoors", "vl", "Wonsae" )
set_task(1.0,"doorhealth")
}
public doorhealth(){
new classname[56], door
entity_get_string(door,EV_SZ_classname,classname,55)
door = equali(classname,"func_door") && equali(classname,"func_door_rotating")
if(equali(classname,"func_door") && equali(classname,"func_door_rotating")){
entity_set_float(door,EV_FL_max_health,2000.0)
entity_set_float(door,EV_FL_health,2000.0)
entity_set_float(door,EV_FL_dmg,0.0)
entity_set_float(door,EV_FL_takedamage,0.0)
}
return PLUGIN_HANDLED
}
This code doesn't seem to work :\. This is also for TS. the doors keep breaking