Можно ли добавить запрет РПГ/SWAM, С4, М18 CLAYMORE но только на карте метро режим ЗАХВАТ?
нашел вот такую настройку, она работает, на и на карту метро режим штурм тоже начинает действовать
первый чек
Regex.Match(kill.Weapon, @"m320|smaw|rpg|С4|M18 CLAYMORE", RegexOptions.IgnoreCase).Success && server.MapFileName.StartsWith("MP_Subway")
второй чек
if (limit.Data.issetBool(player.Name))
{
plugin.SendGlobalMessage(plugin.R("%p_n% has been banned for using %w_n%, after a kick!"));
plugin.PBBanPlayerWithMessage(PBBanDuration.Temporary, player.Name, 15, plugin.R("%p_n% you have been banned for 15 minutes for using %w_n%"));
limit.Data.unsetBool(player.Name);
}
int count = (int) limit.Activations(player.Name);
if (count == 1)
{
plugin.SendGlobalMessage(plugin.R("%p_n% do not use %w_n%!"));
plugin.KillPlayer(player.Name);
if (limit.Data.issetBool(player.Name))
{
plugin.SendGlobalMessage(plugin.R("%p_n% has been banned for using %w_n%, after a kick!"));
plugin.PBBanPlayerWithMessage(PBBanDuration.Temporary, player.Name, 15, plugin.R("%p_n% you have been banned for 15 minutes for using %w_n%"));
limit.Data.unsetBool(player.Name);
}
int count = (int) limit.Activations(player.Name);
if (count == 1)
{
plugin.SendGlobalMessage(plugin.R("%p_n% do not use %w_n%!"));
plugin.KillPlayer(player.Name);
}
else if (count == 2)
нашел вот такую настройку, она работает, на и на карту метро режим штурм тоже начинает действовать
первый чек
Regex.Match(kill.Weapon, @"m320|smaw|rpg|С4|M18 CLAYMORE", RegexOptions.IgnoreCase).Success && server.MapFileName.StartsWith("MP_Subway")
второй чек
if (limit.Data.issetBool(player.Name))
{
plugin.SendGlobalMessage(plugin.R("%p_n% has been banned for using %w_n%, after a kick!"));
plugin.PBBanPlayerWithMessage(PBBanDuration.Temporary, player.Name, 15, plugin.R("%p_n% you have been banned for 15 minutes for using %w_n%"));
limit.Data.unsetBool(player.Name);
}
int count = (int) limit.Activations(player.Name);
if (count == 1)
{
plugin.SendGlobalMessage(plugin.R("%p_n% do not use %w_n%!"));
plugin.KillPlayer(player.Name);
if (limit.Data.issetBool(player.Name))
{
plugin.SendGlobalMessage(plugin.R("%p_n% has been banned for using %w_n%, after a kick!"));
plugin.PBBanPlayerWithMessage(PBBanDuration.Temporary, player.Name, 15, plugin.R("%p_n% you have been banned for 15 minutes for using %w_n%"));
limit.Data.unsetBool(player.Name);
}
int count = (int) limit.Activations(player.Name);
if (count == 1)
{
plugin.SendGlobalMessage(plugin.R("%p_n% do not use %w_n%!"));
plugin.KillPlayer(player.Name);
}
else if (count == 2)