Quote:
Originally Posted by ExboCooope
For example:from a[3] to b[3].
It would be better if the line can last for a certan seconds.
I have tried to find it in some Long Jump plugins,but I failed.
(My English is not very well since I am a Chinese)
|
Code:
new g_beampoint
public plugin_precache()
{
g_beampoint = precache_model("sprites/laserbeam.spr")
}
public draw_laser(Float:start[3], Float:end[3], staytime)
{
message_begin(MSG_ALL, SVC_TEMPENTITY)
write_byte(TE_BEAMPOINTS)
engfunc(EngFunc_WriteCoord, start[0])
engfunc(EngFunc_WriteCoord, start[1])
engfunc(EngFunc_WriteCoord, start[2])
engfunc(EngFunc_WriteCoord, end[0])
engfunc(EngFunc_WriteCoord, end[1])
engfunc(EngFunc_WriteCoord, end[2])
write_short(g_beampoint)
write_byte(0)
write_byte(0)
write_byte(staytime)
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()
}
__________________