Okay, I think I understand It a little better. Would this work?
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Would I need a set_task here?
}
public newdoor(){
new entity = create_entity("func_door")
entity_set_origin("604 477 -155")
entity_set_int(ent,EV_INT_solid, 2)
entity_set_string(ent,EV_SZ_classname,"model");
entity_set_model(ent,"models/mymodel.mdl");
return PLUGIN_HANDLED
}
If It would work, would there be any strange affects or anything?