View Single Post
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 09-28-2009 , 16:04   Re: Death & Damage Realistic.
Reply With Quote #6

PHP Code:
    Red register_cvar("amx_reddmg""250")
    
Green register_cvar("amx_greendmg""0")
    
Blue register_cvar("amx_bluedmg""0")
    
Alpha register_cvar("amx_alphadmg""200"
Could be --->

PHP Code:
    new pColor 
    
    
//Plugin Init
    
pColor register_cvar("amx_damage_color","250 0 0 200"// R G B ALPHA
    
    
    
    //Then, in your function --->
    
    
new szPcvarColor[32], szRed[4], szGreen[4], szBlue[4], szAlpha[4]
    
get_pcvar_string(pColorszPcvarColor31)
    
parse(szPcvarColor,szRed,3,szGreen,3,szBlue,3,szAlpha,3)
    
    
//...
    
message_begin(MSG_ONE_UNRELIABLEScreenFade_victim)
    
write_short(UnitSecond*get_pcvar_num(FadeTimeDmg))
    
write_short(UnitSecond*0)
    
write_byte(clamp(str_to_num(szRed),0,255))
    
write_byte(clamp(str_to_num(szGreen),0,255))
    
write_byte(clamp(str_to_num(szBlue),0,255))
    
write_byte(str_to_num(szAlpha))
    
message_end() 

Also in

PHP Code:
public Killed(victim)

__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 09-28-2009 at 16:08.
Starsailor is offline