Exemple #1
0
 private bool IsGod(string UserID)
 {
     if (Godmode == null)
     {
         return(false);
     }
     return(Godmode.Call <bool>("IsGod", UserID));
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 private bool IsGod(string UserID)
 {
     return(Godmode != null && Godmode.Call <bool>("IsGod", UserID));
 }