public void SetIcon(Entity player) { UiC_Loader.AfterDelay(1000, () => { player.StatusIcon = "cardicon_iwlogo"; }); }
public override void Initialize() { Server.Hostname = GSCFunctions.GetDvar("sv_hostname"); return; UiC_Loader.AfterDelay(2000, AntiForceClass.Initialize); }
public void CheckIntegrity(Entity entity) { if (entity.GUID.ToString().Length != 17 && entity.GUID.ToString().Length != 17) { UiC_Loader.AfterDelay(2000, () => Utilities.ExecuteCommand($"dropclient {entity.EntRef} ^0[^5UiC Anti Cheat^0] ^7Cheat Detected. Discord: uic.elitesnipers.pw/discord")); Utilities.RawSayAll($"Player ^3{entity.Name} ^7kicked by ^3UiC^7, Reason: Contact Musta. Discord: uic.elitesnipers.pw/discord"); WebhookManager.SendWebhookSuspect(entity, "HWID Length is bad format.", Server.Hostname.RemoveColors(), "**Player kicked for bad HWID**", "UiC Anti-Cheat", AntiForceClass.DsrName, Color.Aqua); } }
private void LongSearchBanEntry(Entity player) { var record = m_bans.Values.FirstOrDefault(x => x.Player.Hwid == player.HWID || x.Player.IP == player.IP.Address.ToString()); if (record != null) { LogIt(record); Log.Write(LogLevel.Info, "Player Kicked by UiC: " + player.Name + ", Hwid: " + player.HWID + ", IP: " + player.IP.Address.ToString()); UiC_Loader.AfterDelay(2000, () => { player.Kick("Banned for " + record.Reason + " By ^3UiC^7. Discord: uic.elitesnipers.pw/discord"); }); Utilities.RawSayAll($"Player ^3{player.Name} ^7kicked by ^3UiC^7, Reason: {record.Reason}"); return; } }
public void AutoCheck() { if (!IfSniper(obj.CurrentWeapon)) { return; } Check(0); UiC_Loader.AfterDelay(30, () => { Check(30); }); UiC_Loader.AfterDelay(100, () => { Check(100); }); }
private bool FastSearchBanEntry(Entity player, XnAddr xnAddr) { if (m_bans.TryGetValue(xnAddr.Value, out var record)) { LogIt(record); Log.Write(LogLevel.Info, "Player Kicked by XnAddr: " + player.Name + ", XnAddr: " + xnAddr.Value); UiC_Loader.AfterDelay(2000, () => { player.Kick("Banned for " + record.Reason + " By ^3UiC^7. Discord: uic.elitesnipers.pw/discord"); }); Utilities.RawSayAll($"Player ^3{player.Name} ^7kicked by ^3UiC^7, Reason: {record.Reason}"); return(true); } return(false); }