GMOD-Builder mode
This is a plugin allows gmod players to build & sandbox in their own peace without worrying about other players killing them or letting them kill other players. The plugin won't allow players to enter builder mode if they recently took damage, caused damage in any kind for other players.
** The project is available on github under the MIT license:**
https://github.com/azarus/gmod-buildermode
Installation
- Upload the
buildermodefolder to yourgarrysmod/addons/folder. - Restart server
- Profit...
Usage / Chat Commands
!build !protect !peace !sandbox to enable builder mode
!fight - to enable fighter mode.
How it works?
When typing !build or any of the activator commands the plugin checks if the user had been in a fight for the past 2 minutes. If the player had been in a fight the request will be denied and the player must stay in peace and try to build. The user may not re-enter builder mode in 3 minutes after leaving.
The build mode activates:
- god mode (invincibile)
- disables damage for other players
- allows the use of the noclip command
API
To manually set build mode for the player call:
ply:SetBuildMode( mode: number );
Modes:
- 0 Disabled builder mode (also triggers 3 minute re-activation delay)
- 1 Enables builder mode
These are only messages / notifications:
- 2 Send's an error message to the user that he is not allowed to use the builder mode
- 3 Allows the use of build mode
- 4 Disables builder mode with punishment to the player (eg killed or tried to damage someone.)
- 5 Simply Broadcasts a message about the builder command
Have a question?
Please open an issue.
License
MIT
Posted on Utopian.io - Rewarding Open Source Contributors