Пример #1
0
 /// <summary> Returns whether the player is currently able to respawn. </summary>
 public static bool CanUseRespawn(Player p)
 {
     return(MakeHackControl(p, p.GetMotd())[4] != 0);
 }
Пример #2
0
 /// <summary> Returns whether the player is currently able to move at faster speeds. </summary>
 public static bool CanUseSpeed(Player p)
 {
     return(MakeHackControl(p, p.GetMotd())[3] != 0);
 }
Пример #3
0
 /// <summary> Returns whether the player is currently able to fly. </summary>
 public static bool CanUseFly(Player p)
 {
     return(MakeHackControl(p, p.GetMotd())[1] != 0);
 }
Пример #4
0
 /// <summary> Returns whether the player is currently able to use noclip. </summary>
 public static bool CanUseNoclip(Player p)
 {
     return(MakeHackControl(p, p.GetMotd())[2] != 0);
 }
Пример #5
0
 /// <summary> Returns whether the player is currently able to use any hacks at all. </summary>
 public static bool CanUseHacks(Player p)
 {
     byte[] packet = MakeHackControl(p, p.GetMotd());
     return(packet[1] != 0 && packet[2] != 0 && packet[3] != 0 && packet[4] != 0 && packet[5] != 0);
 }