Why entity dont create?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#define PLUGIN "xxx"
#define VERSION "1.0"
#define AUTHOR "DelFast"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_touch("*","some_entiti","function")
}
public function() {
new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
set_pev(ent,pev_classname,"some_entity")
set_pev(ent,pev_origin,{3100.5, 1074.4, -2317.2}) // set your origins here
engfunc(EngFunc_SetSize, ent, Float:{-52.0, -52.0, -32.0}, Float:{52.0, 52.0, 32.0})
dllfunc(DLLFunc_Spawn, ent)
set_pev(ent, pev_solid, SOLID_BBOX)
return ent
}