C0nw0nk / Garrys-Mod-Family-Sharing

Prevent players bypassing existing bans on Garrys Mod Servers via steam family sharing / shared accounts or buying a new GMod. Banned messages and banning lengths configurable with lots of extra useful custom features such as a ban tracker / tracking. This script is guaranteed to make players regret receiving a ban from your server in GarrysMod / GarryMod / Garry'sMod / Garry's Mod / G Mod / G-Mod familysharing alts / alternative are a thing of the past. familysharing / familyshared checks / checker / checked / checking. lua script addon addons
http://www.networkflare.com/
Other
34 stars 12 forks source link

Question #1

Closed dan2735 closed 8 years ago

dan2735 commented 8 years ago

Wouldn't having all the setting variables be global cause issues?

C0nw0nk commented 8 years ago

No because only 3 are shared the rest are server sided. It would only be a problem if other addons on your server used the same string name.

The only reason I removed them from being local values is because of the split I made between the two "if SERVER then" statements.

Example : if SERVER then local value = "lol" end --Can't be read from a separate statement. if SERVER then print(value) end To print the value will return nil.

In the next update I release on the script I localized the shared settings. As well as a few others I missed. As well as to allow the script to work on servers that don't use ULX. But I recommend to not localize any of the settings inside the "If SERVER" block or you will find you break the script and it won't work.

C0nw0nk commented 8 years ago

https://github.com/C0nw0nk/Garrys-Mod-Family-Sharing/commit/3d3ab1a8d7547218496b06b068e966cee51fccb0

Updated to localize the last of the values that can be but with the next release i have done it has allot of changes i will make it possible to localize those settings again in the next release.