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(client, Prop_Send, "m_iHealth", 100, 1);
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