Advertisement
Guest User

Untitled

a guest
Mar 28th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 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 = 3 --[ 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 = 600 --[ 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 = true --[ 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 = {"fondateur", "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 = "mysqloo" --[ tmysql4 or mysqloo ]--
  31.  
  32. WhitelistN.Config.DatabaseInfo = {
  33. Hostname = "107.180.41.37",
  34. User = "georgefonda",
  35. Password = "kiki2001",
  36. DatabaseName = "laciterpforum",
  37. Port = 3306,
  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 = 5, InGameRank = 'fondateur'},
  44. {ForumID = 6, InGameRank = 'co_fondateur'},
  45. {ForumID = 7, InGameRank = 'moderateur'},
  46. {ForumID = 8, InGameRank = 'moderateur_test'},
  47. {ForumID = 2, InGameRank = 'user'},
  48. {ForumID = 9, InGameRank = 'admin'},
  49. {ForumID = 10, InGameRank = 'superadmin'},
  50. {ForumID = 11, InGameRank = 'vip'},
  51. {ForumID = 12, InGameRank = 'vip+'},
  52. }
  53.  
  54. --[ SteamIDs listed here will be ignored by the system completly! ]--
  55. WhitelistN.Config.IgnoreIDs = {}
  56.  
  57. --[ BANNED RANK CONFIGURATION ]--
  58. --[ These ranks are unable to join the server if enabled ]--
  59. WhitelistN.Config.BanRanks = {}
  60.  
  61. --[ WHITELIST CONFIGURATION ]--
  62. --[ These ranks are allowed to join when whitelist is enabled ]--
  63. WhitelistN.Config.WhitelistOnlyRanks = {}
  64.  
  65. --[ IPB DATABASE CONFIGURATION ]--
  66. --[ Only edit if you know what you're doing. These settings are default and normally don't need to be changed! ]--
  67.  
  68. WhitelistN.Config.IPB_DatabaseTable = "core_members" --[ table to select ]--
  69. WhitelistN.Config.IPB_DatabaseWhere = "steamid" --[ name for steamid data ]--
  70. WhitelistN.Config.IPB_DatabaseUpdate = "member_group_id" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  71. WhitelistN.Config.IPB_DatabaseData = { "member_group_id", "mgroup_others"} --[ First column will be their rank. ]--
  72.  
  73. --[ MyBB DATABASE CONFIGURATION ]--
  74. --[ Make sure to set your prefix to whatever you used when installing MyBB. Default is 'mybb_' ]--
  75.  
  76. WhitelistN.Config.MyBB_DatabaseTable = "mybb_users" --[ table to select [MAKE SURE TO CHECK PREFIX: DEFAULT: mybb_ ]
  77. WhitelistN.Config.MyBB_DatabaseWhere = "loginname" --[ name for steamid data ]--
  78. WhitelistN.Config.MyBB_DatabaseUpdate = "usergroup" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  79. WhitelistN.Config.MyBB_DatabaseData = { "usergroup", "additionalgroups"} --[ [Always have primary group first] data to select ]--
  80.  
  81. --[ Xenforo DATABASE CONFIGURATION ]--
  82. --[ Only edit if you know what you're doing. These settings are default and normally don't need to be changed! ]--
  83.  
  84. WhitelistN.Config.XF_DatabaseTable = "xf_user_external_auth" --[ don't touch unless you know what you're doing. ]--
  85. WhitelistN.Config.XF_DatabaseTable2 = "xf_user" --[ don't touch unless you know what you're doing. ]--
  86. WhitelistN.Config.XF_DatabaseWhere = "provider_key" --[ don't touch unless you know what you're doing. ]--
  87. WhitelistN.Config.XF_DatabaseSelect = "user_id" --[ don't touch unless you know what you're doing. ]--
  88. WhitelistN.Config.XF_DatabaseUpdate = "user_group_id" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  89. WhitelistN.Config.XF_DatabaseData = { "user_group_id", "secondary_group_ids"} --[ [Always have primary group first] data to select ]--
  90.  
  91. --[ VB DATABASE CONFIGURATION ]--
  92. --[ Only edit if you know what you're doing. These settings are default and normally don't need to be changed! ]--
  93.  
  94. WhitelistN.Config.VB_DatabaseTable = "user" --[ don't touch unless you know what you're doing. ]--
  95. WhitelistN.Config.VB_DatabaseWhere = "steam_code" --[ don't touch unless you know what you're doing. ]--
  96. WhitelistN.Config.VB_DatabaseUpdate = "usergroupid" --[ Used for syncing ranks ingame -> forums. This is their column you want to change ]--
  97. WhitelistN.Config.VB_DatabaseData = { "usergroupid", "membergroupids"} --[ [Always have primary group first] data to select ]--
  98.  
  99.  
  100. /*
  101. 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.
  102.  
  103. Thanks -Nykez
  104. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement