Integro, название карты.
Integro, если она не популярна - найди способ передать мне её.
#include <sdktools>
#include <sourcemod>
public Plugin:myinfo =
{
name = "Game_End",
author = "Hejter",
description = "Remove game_end entity",
version = "1.0",
url = "hlmod.ru"
}
public OnEntityCreated(ent, const String:classname[])
{
decl String:MapName[255];
if(StrEqual(MapName, "z_umi_boatz_v9_2_rp"))
{
if(IsValidEdict(ent))
{
if(StrEqual(classname, "game_end"))
{
AcceptEntityInput(ent, "kill");
PrintToServer("%d deleted %s",ent, classname);
}
}
}
}
Пробуй.
PHP:#include <sdktools> #include <sourcemod> public Plugin:myinfo = { name = "Game_End", author = "Hejter", description = "Remove game_end entity", version = "1.0", url = "hlmod.ru" } public OnEntityCreated(ent, const String:classname[]) { decl String:MapName[255]; if(StrEqual(MapName, "z_umi_boatz_v9_2_rp")) { if(IsValidEdict(ent)) { if(StrEqual(classname, "game_end")) { AcceptEntityInput(ent, "kill"); PrintToServer("%d deleted %s",ent, classname); } } } }
Не получили саму карту + правильней так:не помогло
#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);
}
}
}
}
Не получили саму карту + правильней так:PHP:#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); } } } }