S&box Wiki

Revision Difference

DoPlayerNoClip#548205

<cat>Code.Player</cat>⤶ ⤶ <title>DoPlayerNoClip</title>⤶ ⤶ ⤶ # What is a DoPlayerNoClip ?⤶ ⤶ It is a function which allows to block the access of noclip to all the players.⤶ ⤶ # Example⤶ ⤶ ⤶ ```csharp⤶ public override void DoPlayerNoclip( Client player )⤶ {⤶ base.DoPlayerNoclip( player );⤶ }⤶ ```⤶ ⤶ # How to add an exception ?⤶ ⤶ An example is how to make so that all the players do not have access to noclip but that only I have access.⤶ ⤶ - `SteamId` - This is your steamID64 (Decimal), you can find your steamID by using [this website](https://steamid.xyz/).⤶ ⤶ # Example⤶ ⤶ ```csharp⤶ public override void DoPlayerNoclip( Client player )⤶ {⤶ if ( player.SteamId != YourSteamIdHereIn64Dec)⤶ return;⤶ base.DoPlayerNoclip( player );⤶ }⤶ ```⤶ ⤶ ⤶ ⤶ ⤶