Solved Detecting admin noclip?

Discussion in 'Rust Development' started by rabbitlol, Nov 13, 2016.

  1. I want to make a button on Admin Panel for Rust to control admin noclip.
    But i Stuck like in here...

    Code:
    var BTNColorClip = btnInactColor;            if (Godmode) { if (Godmode.Call<bool>("IsGod", player.UserIDString)) { BTNColorGod = btnActColor; }; };
    So.. How to detection noclip? to make the BTN color to change?

    Thank you :)
     
  2. Wulf

    Wulf Community Admin

    The only way you c an detect if a player is no clipping is by using a timer and checking IsFlying or similar. It's a client-side setting, not really a server command or state though.
     
  3. was just about to say that Wulf.. :)

    rabbitlol, check my FAUXADMIN plugin for example

    On player tick, checks to see if player is flying or not.
     
  4. Okay, I will see. Thank you :)
     
  5. 'if player is flying or not'
    It's work~~! Thank you!!!