private bool IsGod(string UserID) { if (Godmode == null) { return(false); } return(Godmode.Call <bool>("IsGod", UserID)); }
private void ToggleGodmode(BasePlayer player) { if (Godmode == null) { return; } if (IsGod(player.UserIDString)) { Godmode.Call("DisableGodmode", player.IPlayer); } else { Godmode.Call("EnableGodmode", player.IPlayer); } AdminGui(player); }
private bool IsGod(string UserID) { return(Godmode != null && Godmode.Call <bool>("IsGod", UserID)); }