Raised This Month: $39 Target: $400
 9% 

Solved How to edit color of this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizzkidon
Senior Member
Join Date: Jan 2017
Old 06-21-2022 , 13:09   How to edit color of this?
Reply With Quote #1

--edited--

Can anyone tell me how i can change the color (like on photo) of this? --in photo was green--

Last edited by wizzkidon; 06-23-2022 at 14:05.
wizzkidon is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-21-2022 , 13:26   Re: How to edit color of this?
Reply With Quote #2

Quote:
Originally Posted by wizzkidon View Post


Can anyone tell me how i can change the color (like on photo) of this? --in photo was green--
I found this:

PHP Code:
InfectionEffects(id)
{
    
//if (get_pcvar_num(cvar_infect_screen_shake))
    
{
        
message_begin(MSG_ONEgmsgScreenShake_id);
        
write_short((1<<12) * 4);
        
write_short((1<<12) * 2);
        
write_short((1<<12) * 10);
        
message_end();
    }
    
    new 
Float:vecOrigin[3];
    
get_entvar(idvar_originvecOrigin);
    
    
//if (get_pcvar_num(cvar_infect_tracers))
    
{
        
message_begin_f(MSG_PVSSVC_TEMPENTITYvecOrigin);
        
TE_Implosion(vecOrigin128203);
    }
    
    
//if (get_pcvar_num(cvar_infect_particles))
    
{
        
message_begin_f(MSG_PVSSVC_TEMPENTITYvecOrigin);
        
TE_ParticleBurst(vecOrigin50703);
    }
    
    new 
cvar_infect_sparkle_color[3] = { 0150};

    
//if (get_pcvar_num(cvar_infect_sparkle))
    
{
        
message_begin_f(MSG_PVSSVC_TEMPENTITYvecOrigin);
        
TE_DLight(vecOrigin20cvar_infect_sparkle_color20);
    }
}

TE_Implosion(Float:position[3], radiuscountlife)
{
    
write_byte(TE_IMPLOSION);
    
write_coord_f(position[0]); // position.x
    
write_coord_f(position[1]); // position.y
    
write_coord_f(position[2]); // position.z
    
write_byte(radius); // radius
    
write_byte(count); // count
    
write_byte(life); // life in 0.1's
    
message_end();
}

TE_ParticleBurst(Float:origin[3], radiusparticleColorduration)
{
    
write_byte(TE_PARTICLEBURST);
    
write_coord_f(origin[0]); // origin
    
write_coord_f(origin[1]);
    
write_coord_f(origin[2]);
    
write_short(radius); // radius
    
write_byte(particleColor); // particle color
    
write_byte(duration); // duration * 10 (will be randomized a bit)
    
message_end();
}

TE_DLight(Float:position[3], radiuscolor[3], lifedecayRate)
{
    
write_byte(TE_DLIGHT);
    
write_coord_f(position[0]); // position.x
    
write_coord_f(position[1]); // position.y
    
write_coord_f(position[2]); // position.z
    
write_byte(radius); // radius in 10's
    
write_byte(color[0]); // red
    
write_byte(color[1]); // green
    
write_byte(color[2]); // blue
    
write_byte(life); // life in 10's
    
write_byte(decayRate); // decay rate in 10's
    
message_end();

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
wizzkidon
Senior Member
Join Date: Jan 2017
Old 06-21-2022 , 15:00   Re: How to edit color of this?
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
I found this:

I recive some errors when i'm trying to compile it:

Code:
deadcolor.sma(1) : warning 203: symbol is never used: "InfectionEffects"
deadcolor.sma(32) : warning 203: symbol is never used: "TE_DLight"
deadcolor.sma(18) : warning 203: symbol is never used: "TE_Implosion"
deadcolor.sma(24) : warning 203: symbol is never used: "TE_ParticleBurst"
deadcolor.sma(73) : error 013: no entry point (no public functions)

Last edited by wizzkidon; 06-21-2022 at 15:00.
wizzkidon is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-21-2022 , 17:14   Re: How to edit color of this?
Reply With Quote #4

Because it's not a plugin, it's a snippet that you can use.
You cannot change the color of those icons.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
LiZou Mapper
Member
Join Date: Oct 2018
Location: Morocco
Old 06-21-2022 , 21:43   Re: How to edit color of this?
Reply With Quote #5

I added this in Zombie Escape Mod, it works

Code:
PHP Code:
// Death Message
message_begin(MSG_ALL83)
write_byte(iAttacker// killer
write_byte(iVictim// victim
write_byte(1// headshot flag
write_string("teammate"// killer's weapon
message_end() 
__________________

-------------
My Maps !
Zombie Escape Mod !
-------------


Last edited by LiZou Mapper; 06-21-2022 at 21:44.
LiZou Mapper is offline
wizzkidon
Senior Member
Join Date: Jan 2017
Old 06-23-2022 , 05:36   Re: How to edit color of this?
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Because it's not a plugin, it's a snippet that you can use.
You cannot change the color of those icons.
Yes you can. I found a lot of server who use a lot of colors of this icons.
wizzkidon is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-23-2022 , 07:45   Re: How to edit color of this?
Reply With Quote #7

Why are you people ( Lizou ) hard coding things up?

Anywho changing deathmsg hud is impossible to be done by the server because its limited and its client side only.
__________________
@Jailbreak Main Mod v2.6.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-23-2022 at 07:46.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
wizzkidon
Senior Member
Join Date: Jan 2017
Old 06-23-2022 , 14:04   Re: How to edit color of this?
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
Because it's not a plugin, it's a snippet that you can use.
You cannot change the color of those icons.
Done. Someone help me to make this plugin. Thank you for answers.
wizzkidon is offline
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 09:36.


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