Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.64 KB | None | 0 0
  1. BWhitelist.Config = {} local config = BWhitelist.Config
  2. --[[
  3.  
  4.  
  5. ██╗ ██╗ █████╗ ██████╗ ███╗ ██╗██╗███╗ ██╗ ██████╗
  6. ██║ ██║██╔══██╗██╔══██╗████╗ ██║██║████╗ ██║██╔════╝
  7. ██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║ ███╗
  8. ██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║ ██║
  9. ╚███╔███╔╝██║ ██║██║ ██║██║ ╚████║██║██║ ╚████║╚██████╔╝
  10. ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═══╝ ╚═════╝
  11.  
  12. If you are using a leak of BWhitelist, before you even bother to configure it, I warn you that the leak WILL NOT work.
  13.  
  14. If you are willing to take the risk, you may be causing yourself a danger. SO DON'T DO IT.
  15.  
  16. You can purchase the script on ScriptFodder.
  17.  
  18. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  19.  
  20. Si tu utilises un leak de BWhitelist, avant que tu te fasses chier à le configurer, je te préviens que ce leak NE MARCHERA PAS.
  21.  
  22. Si tu tiens à prendre le risque, tu te poses un danger inutile. ALORS NE LE FAIS PAS.
  23.  
  24. Tu peux acheter ce script sur ScriptFodder.
  25.  
  26. =================================================================================================================================================================
  27.  
  28. ██████╗ ██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗███████╗████████╗ ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗
  29. ██╔══██╗██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔════╝╚══██╔══╝ ██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝
  30. ██████╔╝██║ █╗ ██║███████║██║ ██║ █████╗ ██║ ██║███████╗ ██║ ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗
  31. ██╔══██╗██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║ ██║╚════██║ ██║ ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║
  32. ██████╔╝╚███╔███╔╝██║ ██║██║ ██║ ███████╗███████╗██║███████║ ██║ ╚██████╗╚██████╔╝██║ ╚████║██║ ██║╚██████╔╝
  33. ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝
  34.  
  35. Please note that there is quite a lot of profanity and insults in this config, mostly because many people can't FUCKING READ
  36. However, if you can read and you have common sense, we're best bros so you can just ignore the profanity.
  37.  
  38. WARNING: Are you retarded? Then this might be more difficult for you! The config is very simple and I provide instructions,
  39. examples, templates and more but some people still can't figure it out. If that's you, read it again and PLEASE
  40. don't make a ticket. We have more important things to attend to and configuration of addons is NEVER the developer's
  41. responsibility.
  42.  
  43. WARNING: You might need to know English to configure this addon! Wow, surprise surprise, English is a very popular language!
  44. Maybe you should learn it if you don't know it. Haha, let's all keep laughing at how France is the least English
  45. speaking country in Europe.
  46.  
  47. WARNING: Use a fucking syntax text editor! Are you using Notepad? Fuck off! Download Notepad++, Sublime Text or Atom.io.
  48.  
  49. ███╗ ███╗██╗ ██╗███████╗ ██████╗ ██╗
  50. ████╗ ████║╚██╗ ██╔╝██╔════╝██╔═══██╗██║
  51. ██╔████╔██║ ╚████╔╝ ███████╗██║ ██║██║
  52. ██║╚██╔╝██║ ╚██╔╝ ╚════██║██║▄▄ ██║██║
  53. ██║ ╚═╝ ██║ ██║ ███████║╚██████╔╝███████╗
  54. ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚══▀▀═╝ ╚══════╝
  55.  
  56. Looking for the MySQL config? Go to bwhitelist_mysql_config.lua.
  57.  
  58. __
  59. / / __ _ _ __ __ _ _ _ __ _ __ _ ___
  60. / / / _` | '_ \ / _` | | | |/ _` |/ _` |/ _ \
  61. / /__| (_| | | | | (_| | |_| | (_| | (_| | __/
  62. \____/\__,_|_| |_|\__, |\__,_|\__,_|\__, |\___|
  63. |___/ |___/
  64.  
  65. BWhitelist currently supports two languages, English and French.
  66.  
  67. If you'd like to contribute to the translation of BWhitelist, please contact me.
  68. Understand however that you need to be FLUENT in English AND the other language(s).
  69. A chain is only as strong as its weakest link!
  70.  
  71. EXAMPLES:
  72.  
  73. config.DefaultLanguage = "English"
  74. config.DefaultLanguage = "English"
  75.  
  76. Change the language below. If you're an idiot and you spell it wrong or something
  77. it will default to English.
  78.  
  79. ]] config.DefaultLanguage = "English" --[[
  80.  
  81. ___ _ _ _ _
  82. /\/\ __ ___ __ / _ \___ _ __ _ __ ___ (_) |_| |_ ___ __| |
  83. / \ / _` \ \/ // /_)/ _ \ '__| '_ ` _ \| | __| __/ _ \/ _` |
  84. / /\/\ \ (_| |> </ ___/ __/ | | | | | | | | |_| || __/ (_| |
  85. \/ \/\__,_/_/\_\/ \___|_| |_| |_| |_|_|\__|\__\___|\__,_|
  86.  
  87. This setting is a list of SteamIDs, SteamID64s and usergroups that
  88. have maximum permissions to BWhitelist.
  89.  
  90. FUCKING READ THIS SHIT OKAY??
  91.  
  92. If you have someone in MaxPermitted (this is common sense btw, you retard)
  93. then you don't need to put them in the next setting, Permissions. Why?
  94. Because as said above, THEY HAVE MAXIMUM FUCKING PERMISSIONS
  95.  
  96. By maximum fucking permissions I mean they can wipe your whole whitelist,
  97. disable all whitelists, enable all whitelists, etc.
  98.  
  99. In the table (or list for you simpletons) you will add SteamIDs, SteamID64s and usergroups.
  100.  
  101. A SteamID looks like this:
  102.  
  103. STEAM_0:1:40314158
  104.  
  105. A SteamID64 looks like this:
  106.  
  107. 76561198040894045
  108.  
  109. and (you should know this as a server owner or "developer" (btw, stop calling yourself a fucking developer,
  110. I'm a developer, you're a configurer unless you can actually CODE Lua.)) a usergroup is whatever you want it
  111. to be.
  112.  
  113. Here's a few examples of MaxPermitted:
  114.  
  115. config.MaxPermitted = {"STEAM_0:1:40314158"}
  116. config.MaxPermitted = {"76561198074425791","STEAM_0:1:40314158"}
  117. config.MaxPermitted = {"76561198074425791","STEAM_0:1:40314158","superadmin"}
  118. config.MaxPermitted = {"superadmin"}
  119.  
  120. Do you get it now? A table is a list? Every item is seperated by commas? Good? Okay.
  121.  
  122. ]] config.MaxPermitted = {"superadmin","Owner", "Server_Manger", "Head Of Staff"} --[[
  123.  
  124. ___ _ _ _ _ __ _ _ __ __ _ _ _ _ _ _
  125. /\/\ __ ___ __ / _ \___ _ __ _ __ ___ (_) |_| |_ ___ __| / _\ | _(_)_ __/ / /\ \ \ |__ (_) |_ ___| (_)___| |_ ___
  126. / \ / _` \ \/ // /_)/ _ \ '__| '_ ` _ \| | __| __/ _ \/ _` \ \| |/ / | '_ \ \/ \/ / '_ \| | __/ _ \ | / __| __/ __|
  127. / /\/\ \ (_| |> </ ___/ __/ | | | | | | | | |_| || __/ (_| |\ \ <| | |_) \ /\ /| | | | | || __/ | \__ \ |_\__ \
  128. \/ \/\__,_/_/\_\/ \___|_| |_| |_| |_|_|\__|\__\___|\__,_\__/_|\_\_| .__/ \/ \/ |_| |_|_|\__\___|_|_|___/\__|___/
  129. |_|
  130.  
  131. Woah there, isn't that a bit of a mouthful? Don't worry, I can't read that ASCII art, either! It says "MaxPermittedSkipWhitelists".
  132.  
  133. Anyway, this is either true or false. If it's true, when someone in MaxPermitted (above) tries to join a whitelisted job, they'll
  134. be let through regardless of whether they're actually whitelisted or not.
  135.  
  136. If it's false, then if they try to join a whitelisted job, they'll go through the standard whitelist check everyone goes through.
  137.  
  138. Here's two examples for you dumbasses:
  139.  
  140. config.MaxPermittedSkipWhitelists = true
  141.  
  142. config.MaxPermittedSkipWhitelists = false
  143.  
  144. ]] config.MaxPermittedSkipWhitelists = true --[[
  145.  
  146. ___ _ _
  147. / _ \___ _ __ _ __ ___ (_)___ ___(_) ___ _ __ ___
  148. / /_)/ _ \ '__| '_ ` _ \| / __/ __| |/ _ \| '_ \/ __|
  149. / ___/ __/ | | | | | | | \__ \__ \ | (_) | | | \__ \
  150. \/ \___|_| |_| |_| |_|_|___/___/_|\___/|_| |_|___/
  151.  
  152. Uh-oh, this is gonna generate a lot of tickets I think!
  153. Oh yeah, let me just remind you: don't make tickets for
  154. config support. It says the same thing way up top.
  155.  
  156. Anyway, Permissions is how people will be authenticated to
  157. edit whitelists & open the menu and shit.
  158.  
  159. It is a table (or, again, a list) but it's a little different this
  160. time. This time, it has a "key"! I won't go into further detail
  161. but you'll see what I mean in the examples.
  162.  
  163. The key can be a SteamID, SteamID64, a usergroup or a TEAM_ variable.
  164. The "value" (what the key "translates" into) will be another table
  165. containing TEAM_ variables.
  166.  
  167. Here's some examples:
  168.  
  169. To allow STEAM_0:1:40314158 to edit the whitelist of the team "Stupid Cuntfuck",
  170. we can do it like this:
  171.  
  172. config.Permissions = {
  173.  
  174. ["STEAM_0:1:40314158"] = {
  175.  
  176. TEAM_STUPIDCUNTFUCK,
  177.  
  178. },
  179.  
  180. }
  181.  
  182. To allow both STEAM_0:1:40314158 and 76561198074425791 to edit the whitelist of the team
  183. "Stupid Cuntfuck" we can do it like this:
  184.  
  185. config.Permissions = {
  186.  
  187. ["STEAM_0:1:40314158"] = {
  188.  
  189. TEAM_STUPIDCUNTFUCK,
  190.  
  191. },
  192.  
  193. ["76561198074425791"] = {
  194.  
  195. TEAM_STUPIDCUNTFUCK,
  196.  
  197. },
  198.  
  199. }
  200.  
  201. To go even further and add a usergroup, we can do:
  202.  
  203. config.Permissions = {
  204.  
  205. ["Trial_Mod"] = {
  206.  
  207. TEAM_STORM,
  208.  
  209. },
  210.  
  211. ["76561198074425791"] = {
  212.  
  213. TEAM_STUPIDCUNTFUCK,
  214.  
  215. },
  216.  
  217. ["trialmod"] = {
  218.  
  219. TEAM_STORM,
  220.  
  221. },
  222.  
  223. }
  224.  
  225. To go EVEN FURTHER and allow "Stupid Cuntfuck Commander" to edit "Stupid Cuntfuck" we can do:
  226.  
  227. config.Permissions = {
  228.  
  229. ["STEAM_0:1:40314158"] = {
  230.  
  231. TEAM_STUPIDCUNTFUCK,
  232.  
  233. },
  234.  
  235. ["76561198074425791"] = {
  236.  
  237. TEAM_STUPIDCUNTFUCK,
  238.  
  239. },
  240.  
  241. ["moderator"] = {
  242.  
  243. TEAM_STUPIDCUNTFUCK,
  244.  
  245. },
  246.  
  247. [TEAM_STUPIDCUNTFUCK_COMMANDER] = {
  248.  
  249. TEAM_STUPIDCUNTFUCK,
  250.  
  251. },
  252.  
  253. }
  254.  
  255. Common errors:
  256.  
  257. "table index is nil": this means that your TEAM_ variable is spelt wrong or simply doesn't exist
  258.  
  259. Get it now? Great! Now continue below:
  260.  
  261. ]] config.Permissions = {
  262.  
  263.  
  264.  
  265. } --[[
  266.  
  267. ___ _ _ ___ _
  268. / __\ |__ __ _| |_ / __\___ _ __ ___ _ __ ___ __ _ _ __ __| |
  269. / / | '_ \ / _` | __|/ / / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` |
  270. / /___| | | | (_| | |_/ /__| (_) | | | | | | | | | | | (_| | | | | (_| |
  271. \____/|_| |_|\__,_|\__\____/\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|
  272.  
  273. This is pretty obvious but if you're retarded I'll give you the run down.
  274. This is what the players will type in chat to open the menu.
  275.  
  276. Examples:
  277.  
  278. config.ChatCommand = "!bwhitelist"
  279.  
  280. config.ChatCommand = "!whitelist"
  281.  
  282. config.ChatCommand = "/bwhitelist"
  283.  
  284. config.ChatCommand = "/whitelist"
  285.  
  286. ]] config.ChatCommand = "!bwhitelist" --[[
  287.  
  288. _ _ _ ___ _ ___ _
  289. /_\ | | | _____ __/ __\___ _ __ ___ ___ | | ___ / __\___ _ __ ___ _ __ ___ __ _ _ __ __| |
  290. //_\\| | |/ _ \ \ /\ / / / / _ \| '_ \/ __|/ _ \| |/ _ \/ / / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` |
  291. / _ \ | | (_) \ V V / /__| (_) | | | \__ \ (_) | | __/ /__| (_) | | | | | | | | | | | (_| | | | | (_| |
  292. \_/ \_/_|_|\___/ \_/\_/\____/\___/|_| |_|___/\___/|_|\___\____/\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|
  293.  
  294. BWhitelist, by default, has a console command to open the menu. It is ALWAYS "bwhitelist".
  295. You can turn it on and off here.
  296.  
  297. ]] config.AllowConsoleCommand = true --[[
  298.  
  299. __ _ _ _ _ _ _ _ _ __ _
  300. / _\ |__ _____ __/\ /\ _ ____ _| |__ (_) |_ ___| (_)___| |_ ___ __| | \ \ ___ | |__ ___
  301. \ \| '_ \ / _ \ \ /\ / / / \ \ '_ \ \ /\ / / '_ \| | __/ _ \ | / __| __/ _ \/ _` | \ \/ _ \| '_ \/ __|
  302. _\ \ | | | (_) \ V V /\ \_/ / | | \ V V /| | | | | || __/ | \__ \ || __/ (_| /\_/ / (_) | |_) \__ \
  303. \__/_| |_|\___/ \_/\_/ \___/|_| |_|\_/\_/ |_| |_|_|\__\___|_|_|___/\__\___|\__,_\___/ \___/|_.__/|___/
  304.  
  305. If false, players won't see the jobs they're not whitelisted to in the F4 menu.
  306. If true, players will see the jobs they're not whitelisted to in the F4 menu.
  307.  
  308. ]] config.ShowUnwhitelistedJobs = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement