Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1.  
  2. --[ Do not touch these ]--
  3. WhitelistN = WhitelistN or {}
  4. WhitelistN.Config = WhitelistN.Config or {}
  5. WhitelistN.Action = WhitelistN.Action or {}
  6. -------------------------------------------------
  7.  
  8. --[ START CONFIGURATION HERE ]--
  9.  
  10. --[ By enablding <CrossComp> you will not get most of the featurs with this script... whitelist, banning.. etc!! ]--
  11. WhitelistN.Config.CrossComp = false --[ THIS WILL MAKE RANKS SYNC TO THE FORUMS. NOT FROM THE FORUMS -> INGAME ]--
  12.  
  13. WhitelistN.Config.ForumDatabase = 1 --[ 1: IPB | 2: MyBB | 3: Xenforo | 4: VB ]--
  14. WhitelistN.Config.MakeGuests = true --[ Make all spawn players guests. Until it finds their rank. (Very secure and useful) ]--
  15. WhitelistN.Config.Interval = 1200 --[ Time in seconds that it resyncs ingame users ]--
  16. WhitelistN.Config.EnableBanRanks = false --[ kicks players with a certain group ID ]--
  17. WhitelistN.Config.EnableWhitelistOnly = false --[ makes the server whitelist only join ]--
  18. WhitelistN.Config.EnableWhitelistOnlyMessage = "This server is currently whitelist only. Apply for whitelist!"
  19. WhitelistN.Config.EnableDARKRPSupport = false --[ enables darkrp support ]--
  20. WhitelistN.Config.DefaultGroup = "user" --[ Default rank to set to until it finds their rank reference ]--
  21.  
  22. WhitelistN.Config.AccessCommand = "!whitelistmenu" --[ Command to open the admin menu ]--
  23. WhitelistN.Config.AccessGroups = {"Co-Owner", "superadmin"} --[ Groups allowed to open the whitelist admin menu! ]--
  24.  
  25. --[ SERVERGUARD CONFIGURATION ]--
  26. WhitelistN.Config.SG_UsingServerguard = false --[ Set to TRUE to enable Serverguard support ]--
  27. WhitelistN.Config.SG_DefaultRank = "user" --[ Default rank to set to until it finds their rank reference ]--
  28.  
  29. --[ DATABASE CONFIGURATION ]--
  30. WhitelistN.Config.SQLModule = "tmysql4" --[ tmysql4 or mysqloo ]--
  31.  
  32. WhitelistN.Config.DatabaseInfo = {
  33. Hostname = "localhost",
  34. User = "goliadco_franks",
  35. Password = "Casper2119",
  36. DatabaseName = "goliadco_franks",
  37. Port = ,
  38. }
  39.  
  40. --[ RANK CONFIGURATION ]--
  41. --[ SYNTAX: ForumID = ID of the forum group, InGameRank = want rank you want them to be ]--
  42. WhitelistN.Config.Ranks = {
  43. {ForumID = 15, InGameRank = 'Co-Owner'},
  44. {ForumID = 15, InGameRank = 'owner'},
  45. }
  46.  
  47. --[ SteamIDs listed here will be ignored by the system completly! ]--
  48. WhitelistN.Config.IgnoreIDs = {
  49. "STEAMID HERE",
  50. "STEAMID HERE",
  51. }
  52.  
  53. --[ BANNED RANK CONFIGURATION ]--
  54. --[ These ranks are unable to join the server if enabled ]--
  55. WhitelistN.Config.BanRanks = {
  56. 99,
  57. 100,
  58. }
  59.  
  60. --[ WHITELIST CONFIGURATION ]--
  61. --[ These ranks are allowed to join when whitelist is enabled ]--
  62. WhitelistN.Config.WhitelistOnlyRanks = {99, 100}
  63.  
  64. --[ IPB DATABASE CONFIGURATION ]--
  65. --[ Only edit if you know what you're doing. These settings are default and normally don't need to be changed! ]--
  66.  
  67. WhitelistN.Config.IPB_DatabaseTable = "core_members" --[ table to select ]--
  68. WhitelistN.Config.IPB_DatabaseWhere = "steamid" --[ name for steamid data ]--
  69. WhitelistN.Config.IPB_DatabaseUpdate = "member_group_id" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  70. WhitelistN.Config.IPB_DatabaseData = { "member_group_id", "mgroup_others"} --[ First column will be their rank. ]--
  71.  
  72. --[ MyBB DATABASE CONFIGURATION ]--
  73. --[ Make sure to set your prefix to whatever you used when installing MyBB. Default is 'mybb_' ]--
  74.  
  75. WhitelistN.Config.MyBB_DatabaseTable = "mybb_users" --[ table to select [MAKE SURE TO CHECK PREFIX: DEFAULT: mybb_ ]
  76. WhitelistN.Config.MyBB_DatabaseWhere = "loginname" --[ name for steamid data ]--
  77. WhitelistN.Config.MyBB_DatabaseUpdate = "usergroup" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  78. WhitelistN.Config.MyBB_DatabaseData = { "usergroup", "additionalgroups"} --[ [Always have primary group first] data to select ]--
  79.  
  80. --[ Xenforo DATABASE CONFIGURATION ]--
  81. --[ Only edit if you know what you're doing. These settings are default and normally don't need to be changed! ]--
  82.  
  83. WhitelistN.Config.XF_DatabaseTable = "xf_user_external_auth" --[ don't touch unless you know what you're doing. ]--
  84. WhitelistN.Config.XF_DatabaseTable2 = "xf_user" --[ don't touch unless you know what you're doing. ]--
  85. WhitelistN.Config.XF_DatabaseWhere = "provider_key" --[ don't touch unless you know what you're doing. ]--
  86. WhitelistN.Config.XF_DatabaseSelect = "user_id" --[ don't touch unless you know what you're doing. ]--
  87. WhitelistN.Config.XF_DatabaseUpdate = "user_group_id" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  88. WhitelistN.Config.XF_DatabaseData = { "user_group_id", "secondary_group_ids"} --[ [Always have primary group first] data to select ]--
  89.  
  90. --[ VB DATABASE CONFIGURATION ]--
  91. --[ Only edit if you know what you're doing. These settings are default and normally don't need to be changed! ]--
  92.  
  93. WhitelistN.Config.VB_DatabaseTable = "user" --[ don't touch unless you know what you're doing. ]--
  94. WhitelistN.Config.VB_DatabaseWhere = "steam_code" --[ don't touch unless you know what you're doing. ]--
  95. WhitelistN.Config.VB_DatabaseUpdate = "usergroupid" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  96. WhitelistN.Config.VB_DatabaseData = { "usergroupid", "membergroupids"} --[ [Always have primary group first] data to select ]--
  97.  
  98.  
  99. /*
  100. Thank you for purchasing. Please send any questions/requests via support ticket. I will answer as quickly as possible, or add my steam and leave a comment explaining.
  101.  
  102. Thanks -Nykez
  103. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement