Okay, I got this:
Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
public plugin_init()
{
register_plugin("Entity spawn","0.1","EncorE_SX")
register_clcmd("spawn_custom","create")
return PLUGIN_CONTINUE
}
new iEntity[33]
public create(id)
{
new origin[3]
get_user_origin(id, origin[3],0)
new Origin = origin[2] + 10.0
iEntity[id] = create_entity("info_target")
entity_set_string(iEntity[id], EV_SZ_classname, "TestEntity")
entity_set_model(iEntity[id], "sprites/custom.spr")
entity_set_origin(iEntity[id], genericOrigin )
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_model("sprites/custom.spr")
return PLUGIN_CONTINUE
}
Now, it gives tons of errors... Can you guys fix it for me?
AND, how do I make it goes directly on position I'm looking at ( where crosshair is ). Or, how to make it go on position where I looked at while launching was in progress... HELP...
__________________