View Single Post
Pruppet
Junior Member
Join Date: Dec 2016
Old 05-16-2017 , 09:48   Re: Getting Client's Max Health
Reply With Quote #2

Code:
bool g_bIsPlayerDamaged[MAXPLAYERS + 1];

if (GetClientHealth(client) < GetEntProp(client, Prop_Data, "m_iMaxHealth"))
{
	g_bIsPlayerDamaged[client] = true;
	
	// Do code.
}

if (g_bIsPlayerDamaged[client])
{
	// Do code.
}
Untested, but should work
__________________
Contact me on Steam for private plugins.
Pruppet is offline