Searched all over the forum and theres almost no result related to TE_PROJECTILE.
I tried to code it like any other temp entity but it doesnt work right.

Where did I do wrong?
PHP Code:
public setrums(id)
{
new origin[3], Float:lookNormal[3], velocity[3]
get_user_origin( id, origin, 1 )
velocity_by_aim( id, 3000, lookNormal )
FVecIVec( lookNormal, velocity )
message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
write_byte( TE_PROJECTILE )
write_coord( origin[0] )
write_coord( origin[1] )
write_coord( origin[2] )
write_coord( velocity[0] )
write_coord( velocity[1] )
write_coord( velocity[2] )
write_short( g_spriteLightning )
write_byte( 8 )
write_byte( id )
message_end()
}