I have a prob , the code will compile but if i use it ingame it shuts the game off

.
Can you guys see a error ?
Code:
#include <amxmodx>
#include <fun>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <amxmod>
public plugin_init()
{
register_clcmd("ascend_x","spawn_sprite")
register_plugin("ascend_x","1.0 beta","Strizer")
return PLUGIN_CONTINUE
}
new theSprite;
public plugin_precache(){
theSprite = precache_model("sprites/haha.spr");
}
public spawn_sprite(id){
new spriteorigin[3];
get_user_origin(id,spriteorigin);
set_view(id, CAMERA_3RDPERSON)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(500);
write_coord(spriteorigin[0]);
write_coord(spriteorigin[1]);
write_coord(spriteorigin[2]);
write_short(theSprite);
write_byte(20);
write_byte(200);
set_view(id, CAMERA_NONE)
message_end();
}