Raised This Month: $ Target: $400
 0% 

VIP bullet damage bug


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-06-2019 , 13:02   VIP bullet damage bug
Reply With Quote #1

Hello,
I have a bug at this plugin; it show bullet damage, but it appears only 0 damage.
PHP Code:
public vip_damage(iAttackeriVictimiDamage)
{
    if(!(
get_user_flags(iAttacker) & VIP_LEVEL_ACCES))
        return 
1;
        
    if(
get_pcvar_num(cvar_vip_bulletdmg) == 1)
    {
        if(++
g_iPosition[iAttacker] == g_iSize)
            
g_iPosition[iAttacker] = 0;
    
        
set_dhudmessage(random_num(0255), random_num(0255), random_num(0255), Floatg_flCoords[g_iPosition[iAttacker]][0], Floatg_flCoords[g_iPosition[iAttacker]][1], 00.12.50.020.02);
        
show_dhudmessage(iAttacker"%i"iDamage);
    }
    
    return 
1;

PHP Code:
public Damage(id)
{
    new 
weaponhitpointattacker get_user_attacker(id,weapon,hitpoint)
    if(
attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
    
    if ( 
is_user_vip id ) )
    {
        
hk_IsUserVipid ] = 1;
        new 
money read_data(2) * get_pcvar_num(mpd)
        if(
hitpoint==1money += get_pcvar_num(mhb)
        
cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
    }else 
hk_IsUserVipid ] = 0;

PHP Code:
new const Floatg_flCoords[][] = 
{
    { 
0.500.40 },
    { 
0.560.44 },
    { 
0.600.50 },
    { 
0.560.56 },
    { 
0.500.60 },
    { 
0.440.56 },
    { 
0.400.50 },
    { 
0.440.44 }
}; 
if you have any idea, don't hesitate to give your opinion
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi 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 02:46.


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