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
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-18-2009 , 13:12   Re: How to draw a colored line from one point to another?
Reply With Quote #5

Code:
public draw_laser(Float:start[3], Float:end[3], seconds) {                         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(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() }
I think he'll like to use seconds not ms, me 2
__________________

anakin_cstrike 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