Raised This Month: $ Target: $400
 0% 

COD: HitMarkers v1.7 [Updated April 29th 2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-21-2020 , 18:10   Re: COD: HitMarkers [First release: 16/01/2020]
Reply With Quote #11

Not a functional improvement but you can reduce code:
PHP Code:
public PostTakeDamage(iVictimiInflictoriAttackerFloat:iDamageiDamagebits)
{
    new 
iRediGreeniBlue;
    
    if(
get_pcvar_num(pPlugin) && is_user_connected(iAttacker) && (get_user_team(iVictim) != get_user_team(iAttacker)))
    {
        new 
iSnipersOnly get_pcvar_num(pSnipersOnly);

        if( ( 
iSnipersOnly && ( gWeaponList & (<< get_user_weapon(iAttacker))) ) || !iSnipersOnly )
        {
            if(
get_pcvar_num(pRainbow))
            {
                
iRed iRainbow;
                
iGreen iRainbow;
                
iBlue iRainbow;
            }
            else
            {
                
iRed get_pcvar_num(pColorRed);
                
iGreen get_pcvar_num(pColorGreen);
                
iBlue get_pcvar_num(pColorBlue);
            }
        
            
set_hudmessage(iRediGreeniBlueget_pcvar_float(pXPosition), get_pcvar_float(pYPosition) , 02.0get_pcvar_float(pHoldTime) , 0.00.0, -1);
            
show_hudmessage(iAttacker"%s" get_pcvar_num(pRandomHitmarkers) ? szSymbols[random(sizeof(szSymbols))] : "x");
        }
    }

__________________

Last edited by Bugsy; 01-21-2020 at 18:11.
Bugsy 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 09:07.


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