Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <fakemeta>
#define PLUGIN "QuickfixPlugs"
#define VERSION "1.1"
#define AUTHOR "udsting"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
set_lights("a")
model_spawn("models/mecklenburg/piano.mdl")
}
public plugin_precache()
{
precache_model("models/mecklenburg/piano.mdl")
}
public model_spawn(model[])
{
new Float:origin[3] = {1354.0,-1895.0,-215.0}
new Float:maxs[3] = {100.0,26.0,52.0}
new Float:mins[3] = {-100.0,-26.0,-52.0}
new Float:angles[3] = {-0.0, -180.0, -0.0}
new ent = create_entity("info_target")
entity_set_string(ent, EV_SZ_classname, "entaddons")
entity_set_model(ent,model)
entity_set_origin(ent,origin)
entity_set_vector(ent,EV_VEC_angles,angles)
entity_set_size(ent,mins,maxs)
entity_set_int(ent,EV_INT_solid,2)
entity_set_int(ent,EV_INT_movetype,0)
entity_set_float(ent,EV_FL_animtime,2.0)
entity_set_float(ent,EV_FL_framerate,1.0)
entity_set_int(ent,EV_INT_sequence,1);
entity_set_byte(ent,EV_BYTE_controller1,125);
entity_set_byte(ent,EV_BYTE_controller2,125);
entity_set_byte(ent,EV_BYTE_controller3,125);
entity_set_byte(ent,EV_BYTE_controller4,125);
}