#pragma semicolon 1 #include #include #define nigga_bomb "tf_projectile_pipe_remote" 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(StrEqual(classname, nigga_bomb)) { //PrintToChatAll("%d place pipe", GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity")); 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); } }