Raised This Month: $ Target: $400
 0% 

How to draw a colored line from one point to another?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-18-2009 , 08:30   Re: How to draw a colored line from one point to another?
Reply With Quote #4

Quote:
Originally Posted by ExboCooope View Post
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() }
__________________
Bugsy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode