You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
843 B
32 lines
843 B
#pragma semicolon 1
|
|
#include <sourcemod>
|
|
#include <sdkhooks>
|
|
|
|
#define nigga_bomb "tf_projectile"
|
|
|
|
public Plugin:myinfo =
|
|
{
|
|
name = "Pipe remover",
|
|
author = "gsd",
|
|
description = "i hate bugs",
|
|
version = "1.0",
|
|
url = "https://tf2.pblr-nyk.pro/"
|
|
}
|
|
|
|
public OnEntityCreated (entity, const String:classname[]) {
|
|
if(StrContains(classname, nigga_bomb) != -1)
|
|
{
|
|
//PrintToChatAll("%d place %s", GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity"), classname);
|
|
SDKHook(entity, SDKHook_Touch, OnPipeTouch);
|
|
}
|
|
}
|
|
|
|
public OnPipeTouch(entity, place) {
|
|
char place_name[64];
|
|
GetEdictClassname(place, place_name, 64);
|
|
//PrintToChatAll("pipe touch, %d, %d, %s", entity, place, place_name);
|
|
if (StrEqual(place_name, "prop_dynamic")) {
|
|
//PrintToChatAll("pipe need dead");
|
|
RemoveEntity(entity);
|
|
}
|
|
}
|