PHP Code:
#include <sourcemod>
public Plugin:myinfo = {
name = "No Damage",
author = "frozenice",
description = "Disables damaging others!",
version = "0.2",
url = "http://frozenice.de"
};
public OnPluginStart()
{
HookEvent("player_hurt", Event_PlayerHurt, EventHookMode_Pre)
}
public Action:Event_PlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)
{
new victimId = GetEventInt(event, "userid")
new attackerId = GetEventInt(event, "attacker")
if (victimId != attackerId)
{
return Plugin_Handled
}
return Plugin_Continue
}
doesn't block it!
why? is there some pre-processing from the engine or sth? (tried in Fortress Forever btw)