Thanks for the fast answer.
I don't have a problem with on and off, my problem is just the trail ends after a time and i will to hold the trail because i wanna see the way which i did. At the moment he just do it for 1 sec and then its off.
PHP Code:
trail(id) {
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(22); // TE_BEAMFOLLOW
write_short(id);
write_short(beamspr); // laserbeam
write_byte(10); // life
write_byte(5); // width
write_byte(250); // R
write_byte(80); // G
write_byte(10); // B
write_byte(175); // brightness
message_end();
}