namespace PRoConEvents { using System; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.Collections; using System.Net; using System.Net.Mail; using System.Web; using System.Data; class LimitEvaluator3 { public bool FirstCheck(PlayerInfoInterface player, PlayerInfoInterface killer, KillInfoInterface kill, PlayerInfoInterface victim, ServerInfoInterface server, PluginInterface plugin, TeamInfoInterface team1, TeamInfoInterface team2, TeamInfoInterface team3, TeamInfoInterface team4) { try { return ( ((true)) == true); } catch(Exception e) { plugin.DumpException(e); } return false; } public bool SecondCheck(PlayerInfoInterface player, PlayerInfoInterface killer, KillInfoInterface kill, PlayerInfoInterface victim, ServerInfoInterface server, PluginInterface plugin, TeamInfoInterface team1, TeamInfoInterface team2, TeamInfoInterface team3, TeamInfoInterface team4, LimitInfoInterface limit) { try { // Keep LBS stats String prefix = "LBS_"; String kKillers = prefix + "killers"; // Killers of a player String kVictims = prefix + "victims"; // Victims of a player // Track killer and victim counts DataDictionaryInterface dk = killer.RoundData; DataDictionaryInterface dv = victim.RoundData; Dictionary vOfK = (Dictionary)dk.getObject(kVictims); Dictionary kOfV = (Dictionary)dv.getObject(kKillers); int count; if (!vOfK.ContainsKey(victim.FullName)) { vOfK[victim.FullName] = 1; } else { count = vOfK[victim.FullName]; vOfK[victim.FullName] = count + 1; } if (!kOfV.ContainsKey(killer.FullName)) { kOfV[killer.FullName] = 1; } else { count = kOfV[killer.FullName]; kOfV[killer.FullName] = count + 1; } int level = Convert.ToInt32(plugin.getPluginVarValue("debug_level")); if (level >= 2) { plugin.ConsoleWrite(plugin.R("^b[LBS] OnKill^n: %k_fn% killer of %v_fn% ") + vOfK[victim.FullName] + " times."); plugin.ConsoleWrite(plugin.R("^b[LBS] OnKill^n: %v_fn% victim of %k_fn% ") + kOfV[killer.FullName] + " times."); } return false; return true; } catch(Exception e) { plugin.DumpException(e); } return true; } } }