Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Anti-farming configuration
- * On change, requires map restart for required player data to be collected properly.
- **/
- -- Steam Web API key.
- -- Required for the below options to work!
- -- If unset, no checks will be made!
- -- See: http://steamcommunity.com/dev/apikey
- SH_REWARDS.WebAPIKey = "74F24944DDC9E25C514A31097489D97D"
- -- How long to cache Steam requests for, in seconds.
- -- This prevents the server from constantly making requests to the Steam Web API whenever a player connects.
- -- Downside to this is if a player reconnects after changing a setting, they'll be stuck with their initial data
- -- until the cache expires, the map is restarted or an administrator runs the `sh_rewards_clear_steamcache` console command.
- SH_REWARDS.SteamCacheLength = 1800
- -- Disallow private/friends-only Steam accounts from receiving rewards/using referral codes?
- SH_REWARDS.DisallowNonPublic = true
- -- Disallow players on the same IP from receiving rewards/using referral codes?
- SH_REWARDS.DisallowSameIPs = true
- -- How many accounts can be on one single IP before the account gets flagged as an alt.
- SH_REWARDS.IPTolerance = 2
- -- Disallow players on the same computer from receiving rewards/using referral codes?
- -- This is experimental and is not a sure-fire way of preventing farming! Do not use as sole anti-farm measure.
- -- It can be easily circumvented if people know what they're doing.
- SH_REWARDS.DisallowSamePCs = false
- -- How many fingerprints can be on one single IP before the account gets flagged as an alt.
- SH_REWARDS.FPTolerance = 5
- -- Disallow family-shared accounts to receive rewards/use referral codes?
- SH_REWARDS.DisallowFamilyShared = true
- -- Disallow community-banned accounts to receive rewards/use referral codes?
- SH_REWARDS.DisallowCommunityBanned = true
- -- Disallow VAC-banned accounts to receive rewards/use referral codes?
- SH_REWARDS.DisallowVACBanned = false
- -- Disallow economy-banned accounts to receive rewards/use referral codes?
- SH_REWARDS.DisallowEconomyBanned = false
- -- Minimum Garry's Mod playtime required (in hours) for players to receive rewards/use referral codes.
- -- Set to 0 for no minimum playtime.
- SH_REWARDS.MinimumGModHours = 10
- -- REFERRALS: When entering a referral code, do players have to be Steam friends with the referrer for it to count?
- -- Only works if the player's profile is public. If this is true and the player's profile is private,
- -- they won't be considered friends with the referrer, thus making the code not work!
- SH_REWARDS.ReferralsFriendsOnly = false
- /**
- * Database configuration
- **/
- -- What database to use to store the data used by this script?
- -- Possible options: sqlite, mysqloo
- -- sqlite uses the server's local SQLite database.
- -- mysqloo uses an external MySQL database (can be configured below). Requires gmsv_mysqloo to be installed on your server.
- SH_REWARDS.DatabaseMode = "sqlite"
- -- If DatabaseMode is mysqloo; credentials to the MySQL database.
- -- The script automatically creates the tables so you don't have to do anything.
- SH_REWARDS.DatabaseConfig = {
- host = "localhost",
- user = "root",
- password = "",
- database = "mysql",
- port = 3306,
- }
Add Comment
Please, Sign In to add comment