S&box Wiki

Revision Difference

DoPlayerNoClip#545794

<cat>Code.Player</cat> <title>DoPlayerNoClip</title> # What is a DoPlayerNoClip ? It is a function which allows to block the access of the noclip to all the players. # Example ```csharp public override void DoPlayerDevCam( Client player ) public override void DoPlayerNoclip( Client player ) { base.DoPlayerDevCam( player ); } ``` # How to add an exception ? An exception ? Yes for example how to make so that all the players do not have access to the noclip but that only I have access. - `SteamId` - This called you steam id in steamID64 (Dec), you can find your steam id here : [SteamIdFinder](https://www.steamidfinder.com/) # Example ```csharp public override void DoPlayerNoclip( Client player ) { if ( player.SteamId != YourSteamIdHereIn64Dec) return; base.DoPlayerNoclip( player ); } ```