Browse Source

all pipes to delete

master
gsd 1 year ago
parent
commit
b89e739a11
  1. 6
      PipeRemover/pipe_remover.sp
  2. BIN
      plugins/pipe_remover.smx

6
PipeRemover/pipe_remover.sp

@ -2,7 +2,7 @@
#include <sourcemod>
#include <sdkhooks>
#define nigga_bomb "tf_projectile_pipe_remote"
#define nigga_bomb "tf_projectile"
public Plugin:myinfo =
{
@ -14,9 +14,9 @@ public Plugin:myinfo =
}
public OnEntityCreated (entity, const String:classname[]) {
if(StrEqual(classname, nigga_bomb))
if(StrContains(classname, nigga_bomb) != -1)
{
//PrintToChatAll("%d place pipe", GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity"));
//PrintToChatAll("%d place %s", GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity"), classname);
SDKHook(entity, SDKHook_Touch, OnPipeTouch);
}
}

BIN
plugins/pipe_remover.smx

Binary file not shown.
Loading…
Cancel
Save