After running a Gmod sandbox server for a while (**HUGE **thank you to darksoul69 for providing free servers, he is amazing) I realized how big of a problem can RDM be. I’ve seen people just join the game and kill everyone on the server until they left. I didn’t want to enable godmode so people can still build weapon contraptions and have fights (as long as both players are fighting voluntarily) so I made this little script
**What does it do?
This script allows a player to switch between two teams (builder and fighter) at any time.
-Have godmode enabled
-Can’t use weapons
*-Can only use weapons
-Cant use noclip
-Can’t use godmode
**go_builder (or !go_builder in chat) - Switch your team to “builder”
go_fighter (or !go_fighter in chat) - Switch your team to “fighter”
sandboxteams_builderdamage (1 or 0, serverside only) - Lets builders damage fighters (For example by using weapon entities). Useful if you want to have a “war” kind of server with people using weapon contraptions
sandboxteams_npcdamage (1 or 0, serverside only) - Lets npcs damage fighters
I am not that great at lua (yet) so please report any bugs or errors and feel free to make suggestions.