hi guys. im trying to create beam with an simple sprite. code is executed ingame but nothing is created...here is the code of it:
PHP Code:
new origin[3];
get_user_origin(id, origin, 3);
message_begin( MSG_ALL, SVC_TEMPENTITY, { 0.0, 0.0, 0.0 }, id );
write_byte( TE_BEAMPOINTS );
write_coord( origin[0] ); //start-x
write_coord( origin[1] );// y
write_coord( origin[2] );// z
write_coord( origin[0]+100 );// end - x
write_coord( origin[1] ); //y
write_coord( origin[2] ); //z
write_short( sprite ) // sprite index
write_byte(0) // starting frame
write_byte(1) // frame rate
write_byte(5) // life
write_byte(10) // line width
write_byte(0) // noise
write_byte(255); // red
write_byte(200); // green
write_byte(0); // blue
write_byte(200)
write_byte(0);
message_end()
is the problem with coordinates ? thanks in advance