I want to make a button on Admin Panel for Rust to control admin noclip.
But i Stuck like in here...
So.. How to detection noclip? to make the BTN color to change?Code:var BTNColorClip = btnInactColor; if (Godmode) { if (Godmode.Call<bool>("IsGod", player.UserIDString)) { BTNColorGod = btnActColor; }; };
Thank you![]()
Solved Detecting admin noclip?
Discussion in 'Rust Development' started by rabbitlol, Nov 13, 2016.
-
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.
-
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. -
Okay, I will see. Thank you
-
'if player is flying or not'
It's work~~! Thank you!!!
