Hello
Need to set a timer that will start after the event "player_hurt" and will execute action "PlayerHurt"
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
public OnPluginStart()
{
HookEvent("player_hurt", PlayerHurt, EventHookMode_Pre);
}
public Action:PlayerHurt(Handle:event, const String:name[],bool:dontBroadcast)
{
new i = GetClientOfUserId(GetEventInt(event, "userid"));
if(i == 0) return Plugin_Continue;
if (GetEntPropFloat(i, Prop_Send, "m_flVelocityModifier") < 0.6) SetEntPropFloat(i, Prop_Send, "m_flVelocityModifier", 0.4);
return Plugin_Continue;
}