Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-21-2020 , 18:21   Re: COD: HitMarkers [First release: 16/01/2020]
Reply With Quote #11

Quote:
Originally Posted by Bugsy View Post
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");
        }
    }

Seriously you're a god, i would've never thought of using it that way. But should i use it? I mean my plugin wouldn't be my plugin anymore if i just use codes that get posted here. I would just be copying..
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



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:08.


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