Hello,
I have a bug at this plugin; it show bullet damage, but it appears only 0 damage.
PHP Code:
public vip_damage(iAttacker, iVictim, iDamage)
{
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(0, 255), random_num(0, 255), random_num(0, 255), Float: g_flCoords[g_iPosition[iAttacker]][0], Float: g_flCoords[g_iPosition[iAttacker]][1], 0, 0.1, 2.5, 0.02, 0.02);
show_dhudmessage(iAttacker, "%i", iDamage);
}
return 1;
}
PHP Code:
public Damage(id)
{
new weapon, hitpoint, attacker = get_user_attacker(id,weapon,hitpoint)
if(attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
if ( is_user_vip ( id ) )
{
hk_IsUserVip[ id ] = 1;
new money = read_data(2) * get_pcvar_num(mpd)
if(hitpoint==1) money += get_pcvar_num(mhb)
cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
}else hk_IsUserVip[ id ] = 0;
}
PHP Code:
new const Float: g_flCoords[][] =
{
{ 0.50, 0.40 },
{ 0.56, 0.44 },
{ 0.60, 0.50 },
{ 0.56, 0.56 },
{ 0.50, 0.60 },
{ 0.44, 0.56 },
{ 0.40, 0.50 },
{ 0.44, 0.44 }
};
if you have any idea, don't hesitate to give your opinion
__________________