Raised This Month: $32 Target: $400
 8% 

Color Tracer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 08-09-2019 , 04:02   Color Tracer
Reply With Quote #1

hello ,

can anybody help me how can i add the color in the tracer, did i have to use any sprite for color

please guide me

PHP Code:
tracer(Float:start[3], Float:end[3]) {
    new 
start_[3], end_[3]
    
FVecIVec(startstart_)
    
FVecIVec(endend_)
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY//  MSG_PAS MSG_BROADCAST
    
write_byte(TE_TRACER)
    
write_coord(start_[0])
    
write_coord(start_[1])
    
write_coord(start_[2])
    
write_coord(end_[0])
    
write_coord(end_[1])
    
write_coord(end_[2])
    
message_end()

__________________
SED LYF !!!
SHIELD755 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 08-09-2019 , 04:11   Re: Color Tracer
Reply With Quote #2

write_byte(TE_TRACER) cannot have color.
__________________
My English is A0
E1_531G is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 08-09-2019 , 04:41   Re: Color Tracer
Reply With Quote #3

Quote:
Originally Posted by E1_531G View Post
write_byte(TE_TRACER) cannot have color.
okay thanks for reply , i must find another way for Laser Tracer like any sprite
__________________
SED LYF !!!
SHIELD755 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 08-09-2019 , 04:48   Re: Color Tracer
Reply With Quote #4

Look at https://forums.alliedmods.net/showthread.php?t=310276
Maybe something will fit to you.
__________________
My English is A0
E1_531G is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-09-2019 , 16:05   Re: Color Tracer
Reply With Quote #5

Quote:
Originally Posted by E1_531G View Post
Look at https://forums.alliedmods.net/showthread.php?t=310276
Maybe something will fit to you.
te_create_user_tracer is the same as tracer, but allows customization, including changing color.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 08-10-2019 , 06:16   Re: Color Tracer
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
te_create_user_tracer is the same as tracer, but allows customization, including changing color.
i am wanted the COLOR TRACER for SENTRYGUN . and i think the user tracer will work for player ? am i right ?
__________________
SED LYF !!!
SHIELD755 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 08-10-2019 , 06:42   Re: Color Tracer
Reply With Quote #7

http://amxx-bg.info/api/msgstocks/te_create_user_tracer
Quote:
stock te_create_user_tracer(position[3], velocity[3], life = 1, color = 106, length = 1, receiver = 0, bool:reliable = true)
Where do you see param for user index?
thEsp is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-10-2019 , 07:23   Re: Color Tracer
Reply With Quote #8

There is XYZ position instead of index, so it will still function the same way. You can even set who can see it by modifying the "receiver" argument.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


Thread Tools
Display Modes

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 11:38.


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