This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

D7 Kill Assist


Post New Thread Reply   
 
Thread Tools Display Modes
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-31-2024 , 06:30   Re: D7 Kill Assist
Reply With Quote #41

self damage counts(if you fall, damage yourself with grenade, etc)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
SaraAki
Member
Join Date: Nov 2022
Old 05-31-2024 , 06:47   Re: D7 Kill Assist
Reply With Quote #42

Can you help me to remove from code self damage count please?
SaraAki is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-31-2024 , 08:38   Re: D7 Kill Assist
Reply With Quote #43

Until proper update is released:
PHP Code:
public fwHamTakeDamagePlayerPre(const iIDVictim)//, const iIDInflictor, const iIDAttacker, const Float:fDamage, const iBsDamageType
{
    
g_iHealth get_user_health(iIDVictim);
}

public 
fwHamTakeDamagePlayer(const iIDVictim, const iIDInflictoriIDAttacker)//, const Float:fDamage, const iBsDamageType
{
    if (!(
<= iIDAttacker <= g_iMaxPlayers))
        
iIDAttacker iIDVictim;
    
    
g_iHealth -= get_user_health(iIDVictim);
    
    if (
g_iHealth <= 0)// || GetHamReturnStatus() == HAM_SUPERCEDE
        
return;
    
    
g_iDamage[iIDAttacker][iIDVictim] += g_iHealth;

->
PHP Code:
public fwHamTakeDamagePlayerPre(const iIDVictim, const iIDInflictor, const iIDAttacker)//, const Float:fDamage, const iBsDamageType
{
    if (
iIDVictim == iIDAttacker || !(<= iIDAttacker <= g_iMaxPlayers))
        return;
    
    
g_iHealth get_user_health(iIDVictim);
}

public 
fwHamTakeDamagePlayer(const iIDVictim, const iIDInflictoriIDAttacker)//, const Float:fDamage, const iBsDamageType
{
    if (
iIDVictim == iIDAttacker || !(<= iIDAttacker <= g_iMaxPlayers))
        return;
    
    
g_iHealth -= get_user_health(iIDVictim);
    
    if (
g_iHealth <= 0)// || GetHamReturnStatus() == HAM_SUPERCEDE
        
return;
    
    
g_iDamage[iIDAttacker][iIDVictim] += g_iHealth;

__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
SaraAki
Member
Join Date: Nov 2022
Old 05-31-2024 , 09:43   Re: D7 Kill Assist
Reply With Quote #44

Great.Will be tested now.
SaraAki is offline
Reply



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 13:06.


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