Skylight uses both. Try this cleaner version that blocks trigger_hurt and trigger_multiple:
#pragma semicolon 1
#include <sourcemod>
#include <sdkhooks>
#include <tf2>
#define PLUGIN_VERSION "0.2.0"
public Plugin:myinfo = {
name = "Don't Hurtme",
author = "AI",
description = "Baby don't hurt me / Don't hurt me / No more",
version = PLUGIN_VERSION,
url = "jump.tf"
}
public OnPluginStart() {
HookEvent("player_spawn", OnPlayerSpawn);
}
public OnEntityCreated(iEntity, const String:sClassname[]) {
if (StrEqual(sClassname, "trigger_hurt") || StrEqual(sClassname, "trigger_multiple")) {
SDKHookEx(iEntity, SDKHook_Touch, OnTouch);
}
}
public Action:OnTouch(iEntity, iOther) {
if (1 <= iOther && iOther <= MaxClients) {
return Plugin_Handled;
}
return Plugin_Continue;
}
public Action:OnPlayerSpawn(Handle:hEvent, const String:sName[], bool:bDontBroadcast) {
new iClient = GetClientOfUserId(GetEventInt(hEvent, "userid"));
SetEntProp(iClient, Prop_Data, "m_takedamage", 1, 1); // Buddha
return Plugin_Continue;
}