Beispiel #1
0
 private void Events_OnPlayerDisconnected(UnturnedPlayer player)
 {
     if (InFly.Contains(player.CSteamID))
     {
         InFly.Remove(player.CSteamID);
     }
 }
Beispiel #2
0
 public void SendFly(UnturnedPlayer p, bool fly)
 {
     if (fly)
     {
         p.Player.movement.sendPluginGravityMultiplier(0);
         p.Player.movement.sendPluginSpeedMultiplier(Configuration.Instance.SpeedInFly);
         p.Features.GodMode = true;
         InFly.Add(p.CSteamID);
     }
     else
     {
         p.Player.movement.sendPluginGravityMultiplier(1);
         p.Player.movement.sendPluginSpeedMultiplier(1);
         p.Features.GodMode = false;
         InFly.Remove(p.CSteamID);
     }
 }