Something like this?
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public void OnPluginStart()
{
HookEvent("player_hurt", Event_PlayerHurt);
}
public Action Event_PlayerHurt(Handle event, char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event,"userid"));
int iHealth = GetClientHealth(client);
if (iHealth < 40)
{
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.0);
}
}
Doesn't seem to work.