How to install.

Simply put all files and folders of this package into your gmod folder (but not the Addons folder!)
If you don't want the script to start everytime you start gmod, simply put the "zzproprotector.lua"
out of your init folder and put it somewhere else. To start, typ

lua _OpenScript("somehwere_else/zzproprotector.lua")

into your console.

For finetuning the script, open it with any texteditor (i recommend NotePad++) and edit the settings. They are commented, so
you will know, what they are doing. You will find them at the beginning of the script!


For adding admins, open the admin.txt, and add your STEAM ID to the table


If you wan't to host this file, do it.
If you want'to use or recode any part of this script, do it, but give credits to me, and Anders1 (because of the cleanup script, on which the script is based off)

For installation of the modified CopyGun, go to the Addons folder in this package, and do the instruction in the ReadMe.txt there.



Ingame Usage:

--For all people
Type "joingroup PlayerNickName" into your console. If you have this done, the player, or the group get a vote either to let you join or not.
Now, all players in this group can use their props, remove them, and use toolgun on it.

To leave a group, type "leavegroup" into your console. You are now into your "own" new group, anyone can join, and you have left the old one with all your props. Noone can now use your props or do toolgunactions with it, except you.

prop_help shows you all available propprotector commands
propprotectortoggle - turnes off/on the protectionmode
freeprop - The next physgunned prop is free for all now.
freeallmyprops - Frees all your props (vote before)
removemyprops - removes all your props

--For Admins
Registered Admins can disable toolgun modes by first getting the toolgunmode via the consolecommand "toolgunlist"
You will get a list with all modes and the current status of it (activated/deactivated)

I you now type "toolgundisable 0" for example into the console, the ropemode is disabled now. Type this again, to reenable it. "off" and "on" as ID will disable or enable the whole toolgun

There are also many other commands, which are manly needed for the Adminpanel. They are:

indicatepropstoggle - turnes off/on indication on old props
proptexttoggle - turnes off/on textindication on old props
colorpropstoggle - turnes off/on coloring old props
cleanupold - removes all old props of left players
cleanupall - removes ALL props from server
autoremovetoggle - turnes off/on the autoremover

aVoN aka System of a pWne!^

Join my gmod server ;) - www.fredbert.de:27016