#include <amxmodx>
#include <amxmisc>
#include <headcrab>
#include <chr_engine>

public plugin_init()
{
	register_plugin("[MA] Headcrab Spawner","1.0","GH")
	register_concmd("drop_hc","create_headcrab2",ADMIN_ALL,"Spawns a headcrab infront of you.")
}
	
public create_headcrab2(id)
{
	new ent = create_headcrab()
	new Float:origin[3]
	get_offset_origin(id,Float:{90.0,0.0,0.0},origin)
	set_pev(ent,pev_origin,origin)

	return PLUGIN_HANDLED
}