#include <sdktools_entinput>
new bool:bActive;
public Plugin:myinfo =
{
name = "Game_End",
author = "Hejter",
description = "Remove game_end entity",
version = "1.0",
url = "hlmod.ru"
}
public OnMapStart()
{
decl String:MapName[32];
GetCurrentMap(MapName, 32);
bActive = strcmp(MapName, "z_umi_boatz_v9_2_rp") ? false:true;
}
public OnEntityCreated(ent, const String:classname[])
{
if(bActive)
{
if(IsValidEdict(ent))
{
if(strcmp(classname, "game_end") == 0)
{
AcceptEntityInput(ent, "kill");
PrintToServer("%d deleted %s",ent, classname);
}
}
}
}