View Single Post
Crackynimous
AlliedModders Donor
Join Date: Jul 2015
Location: France
Old 01-06-2018 , 10:02   Re: [CS:GO] Give assits on suicide ?
Reply With Quote #9

I realized that CSGO give assists when the player gives at least 41 damage.

I did that :

PHP Code:
public Action:OnTakeDamage(client, &attacker, &inflictor, &Float:damage, &damagetype)
{
    if (
damagetype DMG_FALL)
    {
        
damage float(GetClientHealth(client) + GetClientArmor(client));
        return 
Plugin_Changed;
    }
    
damage 41.0;
    
SetEntProp(clientProp_Send"m_iHealth"1001);
    return 
Plugin_Changed;

(I refill life because I want that players dies only from falling)

I want that the assist be given to the last player who did damage, but it give the assist to the first player who did damage.

Someone have an idea on how to do that ?

@Mitchell I tried to use your code, but it's to hard for me
Crackynimous is offline