AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   D7 Kill Assist (https://forums.alliedmods.net/showthread.php?t=321887)

georgik57 05-31-2024 06:30

Re: D7 Kill Assist
 
self damage counts(if you fall, damage yourself with grenade, etc)

SaraAki 05-31-2024 06:47

Re: D7 Kill Assist
 
Can you help me to remove from code self damage count please?

georgik57 05-31-2024 08:38

Re: D7 Kill Assist
 
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;



SaraAki 05-31-2024 09:43

Re: D7 Kill Assist
 
Great.Will be tested now.


All times are GMT -4. The time now is 05:50.

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