Advertisement
Guest User

Untitled

a guest
Apr 10th, 2018
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. /**
  2. * Anti-farming configuration
  3. * On change, requires map restart for required player data to be collected properly.
  4. **/
  5.  
  6. -- Steam Web API key.
  7. -- Required for the below options to work!
  8. -- If unset, no checks will be made!
  9. -- See: http://steamcommunity.com/dev/apikey
  10. SH_REWARDS.WebAPIKey = "in the actual server I have my API Key"
  11.  
  12. -- How long to cache Steam requests for, in seconds.
  13. -- This prevents the server from constantly making requests to the Steam Web API whenever a player connects.
  14. -- Downside to this is if a player reconnects after changing a setting, they'll be stuck with their initial data
  15. -- until the cache expires, the map is restarted or an administrator runs the `sh_rewards_clear_steamcache` console command.
  16. SH_REWARDS.SteamCacheLength = 1800
  17.  
  18. -- Disallow private/friends-only Steam accounts from receiving rewards/using referral codes?
  19. SH_REWARDS.DisallowNonPublic = true
  20.  
  21. -- Disallow players on the same IP from receiving rewards/using referral codes?
  22. SH_REWARDS.DisallowSameIPs = true
  23.  
  24. -- How many accounts can be on one single IP before the account gets flagged as an alt.
  25. SH_REWARDS.IPTolerance = 2
  26.  
  27. -- Disallow players on the same computer from receiving rewards/using referral codes?
  28. -- This is experimental and is not a sure-fire way of preventing farming! Do not use as sole anti-farm measure.
  29. -- It can be easily circumvented if people know what they're doing.
  30. SH_REWARDS.DisallowSamePCs = false
  31.  
  32. -- How many fingerprints can be on one single IP before the account gets flagged as an alt.
  33. SH_REWARDS.FPTolerance = 5
  34.  
  35. -- Disallow family-shared accounts to receive rewards/use referral codes?
  36. SH_REWARDS.DisallowFamilyShared = true
  37.  
  38. -- Disallow community-banned accounts to receive rewards/use referral codes?
  39. SH_REWARDS.DisallowCommunityBanned = true
  40.  
  41. -- Disallow VAC-banned accounts to receive rewards/use referral codes?
  42. SH_REWARDS.DisallowVACBanned = false
  43.  
  44. -- Disallow economy-banned accounts to receive rewards/use referral codes?
  45. SH_REWARDS.DisallowEconomyBanned = false
  46.  
  47. -- Minimum Garry's Mod playtime required (in hours) for players to receive rewards/use referral codes.
  48. -- Set to 0 for no minimum playtime.
  49. SH_REWARDS.MinimumGModHours = 5
  50.  
  51. -- REFERRALS: When entering a referral code, do players have to be Steam friends with the referrer for it to count?
  52. -- Only works if the player's profile is public. If this is true and the player's profile is private,
  53. -- they won't be considered friends with the referrer, thus making the code not work!
  54. SH_REWARDS.ReferralsFriendsOnly = true
  55.  
  56. /**
  57. * Database configuration
  58. **/
  59.  
  60. -- What database to use to store the data used by this script?
  61. -- Possible options: sqlite, mysqloo
  62. -- sqlite uses the server's local SQLite database.
  63. -- mysqloo uses an external MySQL database (can be configured below). Requires gmsv_mysqloo to be installed on your server.
  64. SH_REWARDS.DatabaseMode = "sqlite"
  65.  
  66. -- If DatabaseMode is mysqloo; credentials to the MySQL database.
  67. -- The script automatically creates the tables so you don't have to do anything.
  68. SH_REWARDS.DatabaseConfig = {
  69. host = "localhost",
  70. user = "root",
  71. password = "",
  72. database = "mysql",
  73. port = 3306,
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement