#pragma semicolon 1 #include #include #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); } }