umm gotta go but got
Code:
#include <amxmodx> //don't to include the include files or the compiler doesnt recognize any of the code
#include <engine> // for origins, co-ods, etc.
public plugin_init()
{
register_plugin("Test","unknown","LynX")
register_clcmd("test","spawn_sprite")
return PLUGIN_CONTINUE
}
new sprite
public spawn_sprite(id)
{
new name[32],origin[3]
get_user_origin(id,name,31)
write_entity(id)
write_coord(origin[0]) // x coordinate
write_coord(origin[1]) // y coordinate
write_coord(origin[2]) // z coordinate
write_short(sprite) // sprite name
message_end()
return PLUGIN_HANDLED
}
public plugin_precache()
{
sprite = precache_model("sprites/testsprite.spr")
return PLUGIN_CONTINUE
}
my teacher is gonna kill me (1 error, line 20)
__________________