Raised This Month: $ Target: $400
 0% 

Glow entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 07-14-2017 , 14:40   Re: Glow entity
Reply With Quote #9

Quote:
Originally Posted by DjSoftero View Post
PHP Code:
new rgb_colors[3]
new 
string_with_colors[20]="255 205 100"
new temp[3][25]

parse(string_with_colorscharsmax(string_with_colors), temp[0], 24temp[1], 24temp[2], 24)/*should be charsmax everywhere, but i lack in time.*/

rbg_colors[0] = str_to_num(temp[0])
rbg_colors[1] = str_to_num(temp[1])
rbg_colors[2] = str_to_num(temp[2])


entity_set_int(ent,EV_INT_iuser1,rgb_colors[0]) 
entity_set_int(ent,EV_INT_iuser2,rgb_colors[1]) 
entity_set_int(ent,EV_INT_iuser3,rgb_colors[2]) 

set_rendering(ent,kRenderFxGlowShell,entity_get_int(ent,EV_INT_iuser1),entity_get_int(ent,EV_INT_iuser2),entity_get_int(ent,EV_INT_iuser3),kRenderNormal,60

but i didn`t quite understand why you used entity_set_int.
becuase its best option for ground model as i think
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
 



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


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