View Single Post
o0whiplash0o
Member
Join Date: Jun 2010
Old 12-12-2010 , 12:03   Re: [TF2] Removing Sandman stun effect
Reply With Quote #41

Quote:
Originally Posted by psychonic View Post
No need for dukehacks or sdkhooks

Code:
#include <sourcemod> #include <tf2_stocks> public OnPluginStart() {     HookEvent("player_hurt",  Event_PlayerHurt); } public Event_PlayerHurt(Handle:event,  const String:name[], bool:dontBroadcast) {     new victim = GetClientOfUserId(GetEventInt(event, "userid"));     if (victim == 0 || !IsClientInGame(victim))         return;         if (GetEventInt(event, "custom") == TF_CUSTOM_BASEBALL)     {         TF2_RemoveCondition(victim, TFCond_Bonked);     } }
Could you compile this for me?
o0whiplash0o is offline