View Single Post
maningrey
Member
Join Date: Sep 2014
Location: Farswitch Newton 1
Old 06-09-2015 , 11:20   Re: CS:GO No Drown DMG
Reply With Quote #3

Oh sorry thats amx, always gets me.

Code:
#include <sourcemod>
#include <sdkhooks>

public OnClientPutInServer(client)
{
    SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}

public Action:OnTakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype)
{
	if (damagetype == DMG_DROWN || damagetype == DMG_DROWNRECOVER)
	{
		damage = 0.0;
	}
	
	return Plugin_Changed;
}

Last edited by maningrey; 06-09-2015 at 11:24. Reason: Darkness: You need to return Plugin_Changed if you modify the damage.
maningrey is offline