Doors aren't godded. Could it be something else thats wrong with this? I breaking a func_door.
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <fun_stocks>
#define PLUGIN "Meck V3B1 Cleanup"
#define VERSION "1.0"
#define AUTHOR "Minimum"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(5.0,"cleanup")
}
public cleanup() {
new ent = 0, entity = 0
while ((ent = find_ent_by_class(ent, "func_door"))) {
entity_set_int(ent , EV_INT_flags , entity_get_int(ent , EV_INT_flags) | FL_GODMODE);
}
while ((entity = find_ent_by_class(entity, "func_door_rotating"))) {
entity_set_int(entity , EV_INT_flags , entity_get_int(entity , EV_INT_flags) | FL_GODMODE);
}
entity_set_int(120 , EV_INT_flags , entity_get_int(ent , EV_INT_flags) | FL_GODMODE);
server_print("Successfully Executed Cleanup.")
return PLUGIN_HANDLED
}