Code:
public draw_laser(start[3], end[3], seconds)
{
message_begin(MSG_ALL, SVC_TEMPENTITY)
write_byte(TE_BEAMPOINTS)
write_coord( start[ 0 ] )
write_coord( start[ 1 ] )
write_coord( start[ 2 ] )
write_coord( end[ 0 ] )
write_coord( end[ 1 ] )
write_coord( end[ 2 ] )
write_short(g_beampoint)
write_byte(0)
write_byte(0)
write_byte(seconds*10)
write_byte(10)
write_byte(1)
write_byte(255) // Red
write_byte(0) // Green
write_byte(0) // Blue
write_byte(127)
write_byte(1)
message_end()
}
__________________