Advertisement
sb2014

SteamCall GMOD Config

Mar 5th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. --[=====[
  2. _____ __ ______ ____
  3. / ___// /____ ____ _____ ___ / ____/___ _/ / /
  4. \__ \/ __/ _ \/ __ `/ __ `__ \/ / / __ `/ / /
  5. ___/ / /_/ __/ /_/ / / / / / / /___/ /_/ / / /
  6. /____/\__/\___/\__,_/_/ /_/ /_/\____/\__,_/_/_/
  7.  
  8. connormcf.com
  9.  
  10. --]=====]
  11.  
  12. steamcall = {}
  13.  
  14. -- * Your server name
  15. -- * Type: string ("cool server")
  16. -- * Default: false
  17. -- *
  18. -- * Setting to false will not show server name
  19. -- * in responder message
  20. steamcall.name = "BlackFirefly.de TTT 1"
  21.  
  22. -- * Your API host (domain or IP only, no trailing slash)
  23. -- * Type: string
  24. -- * Default: required
  25. steamcall.host = "185.188.6.200"
  26.  
  27. -- * Your API port
  28. -- * Type: integer
  29. -- * Default: 8393
  30. steamcall.port = 8393
  31.  
  32. -- * Language
  33. -- * Type: string ("en_GB", "fr_FR")
  34. -- * Default: "en_GB"
  35. steamcall.language = "de_DE"
  36.  
  37. -- * Your API secret key
  38. -- * Type: string
  39. -- * Default: secure random string
  40. -- *
  41. -- * This is set to a unique value which is the same as
  42. -- * the API secret by default, you should not need to
  43. -- * modify it
  44. steamcall.secret = "Ou1hsMZmSLNRSSg7mkPvd/6ohWU="
  45.  
  46. -- * Import responders from admin mod
  47. -- * Type: string ("ulx")
  48. -- * Default: "ulx"
  49. steamcall.adminMod = "ulx"
  50.  
  51. -- * Users in groups to message
  52. -- * Type: table
  53. -- * Default: { }
  54. steamcall.includeGroups = {
  55. "superadmin",
  56. "adminvip",
  57. "admin",
  58. "moderatorvip",
  59. "moderator",
  60. "supportervip",
  61. "supporter"
  62. }
  63.  
  64. -- * Steam IDs (any format accepted) to message
  65. -- * Type: table
  66. -- * Default: { }
  67. steamcall.includeIDs = {
  68. "STEAM_0:0:189653164",
  69. "STEAM_0:0:174285644"
  70. -- "76561198056767761",
  71. -- "STEAM_0:1:48251016",
  72. -- "[U:1:96502033]"
  73. }
  74.  
  75. -- * Steam IDs (any format accepted) to NOT message
  76. -- * Type: table
  77. -- * Default: { }
  78. steamcall.excludeIDs = {
  79. "76561798076523438"
  80. -- "76561198056767761",
  81. -- "STEAM_0:1:48251016",
  82. -- "[U:1:96502033]"
  83. }
  84.  
  85. -- * Reply poll interval
  86. -- * Type: integer
  87. -- * Default: 5
  88. steamcall.replyPollInterval = 5
  89.  
  90. -- * Time in seconds between requests
  91. -- * Type: integer
  92. -- * Default: 30
  93. steamcall.cooldownTime = 30
  94.  
  95. -- * Min message length
  96. -- * Type: integer
  97. -- * Default: 5
  98. steamcall.minMessageLength = 5
  99.  
  100. -- * Max message length
  101. -- * Type: integer
  102. -- * Default: 350
  103. steamcall.maxMessageLength = 500
  104.  
  105. --[=====[
  106. ADVANCED CONFIGUTATION
  107. --]=====]
  108.  
  109. -- * Your API protocol
  110. -- * Type: string ("http", "https")
  111. -- * Default: "http"
  112. -- *
  113. -- * "http" should be fine for most cases
  114. steamcall.protocol = "http"
  115.  
  116. -- * Is admin, only used for steamcall_2fa
  117. -- * Type: function
  118. -- * Returns: boolean
  119. steamcall.isAdmin = function(ply)
  120. return ply:IsAdmin()
  121. end
  122.  
  123. AddCSLuaFile("steamcall_lang/" .. steamcall.language .. ".lua")
  124. GetGlobalString("steamcall_lang", steamcall.language)
  125. steamcall.lang = include("steamcall_lang/" .. steamcall.language .. ".lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement