PHP Code:
#include <amxmodx>
#include <engine>
new g_Model[] = "models/player/gign/gign.mdl"
public plugin_init()
register_clcmd("say /test", "create_ent")
public plugin_precache()
precache_model(g_Model)
public create_ent(id){
new Float:origin[3]
entity_get_vector(id, EV_VEC_origin, origin)
//Player aside the origin of the entity
origin[1] += 50.0
origin[2] += 50.0
new Ent = create_entity("info_target")
entity_set_origin(Ent, origin)
entity_set_string(Ent, EV_SZ_classname, "ent_name")
entity_set_model(Ent, g_Model)
entity_set_int(Ent, EV_INT_solid, 2)
entity_set_size(Ent, Float:{-16.0, -16.0, -16.0}, Float:{16.0, 16.0, 16.0})
entity_set_float(Ent, EV_FL_animtime, 2.0)
entity_set_float(Ent, EV_FL_framerate, 1.0)
}
__________________