public static bool CanUseHacks(Player p, Level lvl) { string motd = lvl.GetMotd(p); bool noHacks = motd.CaselessContains("-hax"); if (noHacks && p.Rank >= LevelPermission.Operator && motd.CaselessContains("+ophax")) { return(true); } return(!noHacks); }
public static bool CanUseNoclip(Player p, Level lvl) { return(MakeHackControl(p, lvl.GetMotd(p))[2] != 0); }
public static bool CanUseSpeed(Player p, Level lvl) { return(MakeHackControl(p, lvl.GetMotd(p))[3] != 0); }
public static bool CanUseHacks(Player p, Level lvl) { byte[] packet = MakeHackControl(p, lvl.GetMotd(p)); return(packet[1] != 0 && packet[2] != 0 && packet[3] != 0 && packet[4] != 0 && packet[5] != 0); }