Ok, I wrote this small plugin to try to spawn sprite. Could you guys be so kind and polish it up so sprite shows on players position - sprite should totally hide player, so other players don't see that player whos using sprite until sprite vanishes. the code:
Code:
public plugin_init(id)
{
register_plugin("Test","unknown","LynX")
register_clcmd("test","spawn_sprite")
return PLUGIN_CONTINUE
}
new sprite
public spawn_sprite(id)
{
new origin[3]
message_begin(MSG_ALL,SVC_TEMPENTITY)
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
write_short( 6.0 ) // sprite life
message_end()
return PLUGIN_HANDLED
}
public plugin_precache()
{
sprite = precache_model("sprites/testsprite.spr")
return PLUGIN_CONTINUE
}
__________________