Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- _____ __ __
- / ____| /\ | \/ |
- | (___ / \ | \ / |
- \___ \ / /\ \ | |\/| |
- ____) / ____ \| | | |
- __|_____/_/ \_\_| _|_|
- / ____| / _(_)
- | | ___ _ __ | |_ _ __ _
- | | / _ \| '_ \| _| |/ _` |
- | |___| (_) | | | | | | | (_| |
- \_____\___/|_| |_|_| |_|\__, |
- __/ |
- |___/
- --]]
- --[[
- VERSION 2.22
- - Added Modules Folder
- - IsAdmin and IsSuperAdmin integration
- - !clearragdolls, !clearcorpses and !cleardecals implemented
- - add prometheus plugin (since its drag and drop to plugin folder)
- - Updated Cloak ability so weapons aren't viewed
- - Small changes to !model and !scale with bone manipulation
- - Reports setting to close them overtime
- - Adverts system
- --]]
- -- Ignore!
- SAM_Settings = SAM_Settings or {}
- if SERVER then -- DO NOT REMOVE THIS IF YOU WANT TO KEEP UR SQL SECURE THX
- -- Use MySQL?
- SAM_Settings.MySQL = true
- -- If above false, ignore these.
- SAM_Settings.DBHOST = "elhs.co"
- SAM_Settings.DBPORT = 3306
- SAM_Settings.DBNAME = "refinedr_admin"
- SAM_Settings.DBUSER = "refinedr_sam"
- SAM_Settings.DBPASS = "markaaronschmidtnigger"
- end
- -- Chat Prefix
- SAM_Settings.Prefix = "[] "
- -- Staff Chat Prefix
- SAM_Settings.PrefixStaffChat = "[Staff] "
- -- RGB Format
- SAM_Settings.PrefixColor = Color(255,100,100)
- -- Command Prefix
- SAM_Settings.CmdPrefix = "!"
- -- Can ranks with same weight target each other!
- SAM_Settings.AllowSameRankCmds = true
- -- Content Pack, Donation and Group Steam Links (Leave blank to not use)
- SAM_Settings.SWorkshop = "https://refinedroleplay.com/workshop"
- SAM_Settings.SGroup = "http://refinedroleplay.com/steamgroup"
- SAM_Settings.DSite = "https://refinedroleplay.com"
- SAM_Settings.Adverts = {
- -- { "Community Name", Community Name Colour, "Message", Color, Frequency (in seconds) }
- { "Refined Roleplay", Color( 255, 255, 255 ), "Check our website! " .. SAM_Settings.DSite, Color(148,0,211), 180 },
- { "Refined Roleplay", Color( 255, 255, 255 ), "Check our steam group! " .. SAM_Settings.SGroup, Color( 148,0,211 ), 270 },
- }
- SAM_Settings.ReportDecayTime = 0
- -- Rank Names
- SAM_Settings.Ranks = {
- -- "*" Represents ALL Permissions
- -- Every use has access to !help, it will show a description for commands they have access to.
- -- For the sake of MySQL ensure that the default rank is at the top of this list!
- {
- name = "user", -- Name
- weight = 100, -- Lower weights cannot target higher weights
- -- For the below options, these rely on darkrp allowing everyone to spawn them (Found it darkrp settings)
- prop_limit = 0, -- This ranks maximum amount of props
- entity_limit = 0, -- This ranks maximum amount of entities
- npc_limit = 0, -- This ranks maximum amount of npcs
- vehicle_limit = 0, -- This ranks maximum amount of vehicles
- -- Side note: The below commands depend on DARKRP, if darkrp lets them spawn with it then they WILL spawn with it.
- physgun = false, -- Spawn with physics gun?
- toolgun = false, -- Spawn with toolgun?
- touch_others_props = false, -- Touch other peoples props?
- darkrp_fpp_admin = false, -- Give all permissions to darkrp related and FPP?
- isAdmin = false, -- what it should return on SAM:IsAdmin( ply )
- isSuperAdmin = false, -- what it should return on SAM:IsSuperAdmin( ply )
- permissions = {
- "sam.steam", -- Permission (See Below)
- "sam.donate",
- },
- },
- {
- name = "trialmoderator",
- weight = 110,
- prop_limit = 0,
- entity_limit = 0,
- npc_limit = 0,
- vehicle_limit = 0,
- physgun = false,
- toolgun = false,
- touch_others_props = false,
- darkrp_fpp_admin = false,
- isAdmin=false,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.unfreeze",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.report",
- },
- },
- {
- name = "moderator",
- weight = 119,
- prop_limit = 0,
- entity_limit = 0,
- npc_limit = 0,
- vehicle_limit = 0,
- physgun = false,
- toolgun = false,
- touch_others_props = false,
- darkrp_fpp_admin = false,
- isAdmin=false,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.donate",
- "sam.freeze",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.unvmute",
- "sam.report",
- },
- },
- {
- name = "seniormoderator",
- weight = 125,
- prop_limit = 0,
- entity_limit = 0,
- npc_limit = 0,
- vehicle_limit = 0,
- physgun = false,
- toolgun = false,
- touch_others_props = false,
- darkrp_fpp_admin = false,
- isAdmin=false,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.donate",
- "sam.freeze",
- "sam.unfreeze",
- "sam.bring",
- "sam.cloak",
- "sam.noclip",
- "sam.goto",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.unvmute",
- "sam.report",
- },
- },
- {
- name = "administrator",
- weight = 130,
- prop_limit = 999999999,
- entity_limit = 99999999,
- npc_limit = 99999999,
- vehicle_limit = 99999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = false,
- isAdmin=true,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.unvmute",
- "sam.ban",
- "sam.spawn",
- "sam.noclip",
- "sam.hp",
- "sam.cloak",
- "sam.god",
- "sam.strip",
- "same.model",
- "sam.pickupply",
- "sam.scale",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- "sam.report",
- },
- },
- {
- name = "senioradministrator",
- weight = 140,
- prop_limit = 999999999,
- entity_limit = 99999999999,
- npc_limit = 999999999,
- vehicle_limit = 99999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.unfreeze",
- "sam.bring",
- "sam.goto",
- "sam.send",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.unvmute",
- "sam.ban",
- "sam.spawn",
- "sam.noclip",
- "sam.hp",
- "sam.armor",
- "sam.cloak",
- "sam.god" ,
- "sam.strip" ,
- "sam.permban",
- "sam.unban",
- "sam.maplist",
- "sam.map",
- "sam.report",
- "sam.pickupply",
- "sam.model",
- "sam.scale",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "elderadministrator",
- weight = 150,
- prop_limit = 9999999999,
- entity_limit = 999999999,
- npc_limit = 99999999,
- vehicle_limit = 99999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=true,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.unfreeze",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.send",
- "sam.unvmute",
- "sam.ban",
- "sam.spawn",
- "sam.noclip",
- "sam.hp",
- "sam.armor",
- "sam.cloak",
- "sam.god",
- "sam.strip" ,
- "sam.permban",
- "sam.unban" ,
- "sam.maplist",
- "sam.map",
- "sam.report",
- "sam.tempban",
- "sam.pickupply",
- "sam.scale",
- "sam.model",
- "sam.admin",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "headadministrator",
- weight = 155,
- prop_limit = 9999999999,
- entity_limit = 999999999,
- npc_limit = 99999999,
- vehicle_limit = 99999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.unfreeze",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.send",
- "sam.unvmute",
- "sam.ban",
- "sam.spawn",
- "sam.noclip",
- "sam.hp",
- "sam.armor",
- "sam.cloak",
- "sam.god",
- "sam.strip" ,
- "sam.permban",
- "sam.tempban",
- "sam.setuser",
- "sam.unban" ,
- "sam.maplist",
- "sam.map",
- "sam.setuser",
- "sam.report",
- "sam.pickupply",
- "sam.scale",
- "sam.model",
- "sam.admin",
- "sam.slay",
- "sam.ip",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "chiefadministrator",
- weight = 160,
- prop_limit = 999999999,
- entity_limit = 99999999,
- npc_limit = 999999999,
- vehicle_limit = 99999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=false,
- isSuperAdmin=true,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.unfreeze",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.kick",
- "sam.mute",
- "sam.unmute",
- "sam.vmute",
- "sam.send",
- "sam.unvmute",
- "sam.ban",
- "sam.spawn",
- "sam.noclip",
- "sam.hp",
- "sam.armor",
- "sam.cloak",
- "sam.god",
- "sam.strip" ,
- "sam.permban",
- "sam.tempban",
- "sam.setuser",
- "sam.unban" ,
- "sam.maplist",
- "sam.map",
- "sam.setuser",
- "sam.report",
- "sam.pickupply",
- "sam.scale",
- "sam.model",
- "sam.admin",
- "sam.slay",
- "sam.ip",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "communityliaison",
- weight = 390,
- prop_limit = 999999999,
- entity_limit = 999999999,
- npc_limit = 999999999,
- vehicle_limit = 9999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=true,
- permissions = {
- "*",
- },
- },
- {
- name = "developmentliaison",
- weight = 400,
- prop_limit = 999999999,
- entity_limit = 999999999,
- npc_limit = 999999999,
- vehicle_limit = 9999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin = false,
- isSuperAdmin = true,
- permissions = {
- "*",
- },
- },
- ----------------GAMEMASTERS-----------
- {
- name = "trialmoderatorgm",
- weight = 110,
- prop_limit = 9999,
- entity_limit = 99999,
- npc_limit = 99999,
- vehicle_limit = 99999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.freeze",
- "sam.bring" ,
- "sam.goto" ,
- "sam.return",
- "sam.report",
- "sam.cloak",
- "sam.noclip",
- "sam.maplist",
- "sam.map",
- "sam.pickupply",
- "sam.model",
- "sam.hp",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "moderatorgm",
- weight = 119,
- prop_limit = 999999,
- entity_limit = 99999,
- npc_limit = 999999,
- vehicle_limit = 999999,
- physgun = false,
- toolgun = false,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=false,
- permissions = {
- "sam.steam",
- "sam.steam",
- "sam.donate",
- "sam.freeze",
- "sam.bring" ,
- "sam.goto" ,
- "sam.return" ,
- "sam.report",
- "sam.kick" ,
- "sam.mute" ,
- "sam.unmute" ,
- "sam.vmute" ,
- "sam.unvmute",
- "sam.report",
- "sam.hp",
- "sam.armor",
- "sam.noclip",
- "sam.map",
- "sam.maplist",
- "sam.pickupply",
- "sam.model",
- "sam.scale",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "gamemaster",
- weight = 120,
- prop_limit = 9999999,
- entity_limit = 9999999,
- npc_limit = 9999999,
- vehicle_limit = 9999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=false,
- isSuperAdmin=true,
- permissions = {
- "sam.steam",
- "sam.bring" ,
- "sam.cloak",
- "sam.noclip",
- "sam.freeze",
- "sam.unfreeze",
- "sam.report",
- "sam.goto" ,
- "sam.return",
- "sam.kick" ,
- "sam.maplist",
- "sam.map",
- "sam.pickupply",
- "sam.god",
- "sam.hp",
- "sam.armor",
- "sam.scale",
- "sam.model",
- "sam.report",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "seniorgamemaster",
- weight = 120,
- prop_limit = 9999999,
- entity_limit = 9999999,
- npc_limit = 9999999,
- vehicle_limit = 9999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=true,
- permissions = {
- "sam.steam",
- "sam.bring" ,
- "sam.cloak",
- "sam.freeze",
- "sam.unfreeze",
- "sam.kick" ,
- "sam.noclip",
- "sam.goto" ,
- "sam.return" ,
- "sam.report",
- "sam.maplist",
- "sam.map",
- "sam.pickupply",
- "sam.god",
- "sam.hp",
- "sam.armor",
- "sam.scale",
- "sam.model",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- {
- name = "leadgamemaster",
- weight = 135,
- prop_limit = 99999999,
- entity_limit = 9999999,
- npc_limit = 9999999,
- vehicle_limit = 9999999,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin=true,
- isSuperAdmin=true,
- permissions = {
- "sam.steam",
- "sam.bring",
- "sam.goto",
- "sam.return" ,
- "sam.freeze",
- "sam.unfreeze",
- "sam.maplist",
- "sam.map",
- "sam.kick",
- "sam.report",
- "sam.noclip",
- "sam.hp",
- "sam.armor",
- "sam.god",
- "sam.cloak",
- "sam.pickupply",
- "sam.model",
- "sam.clearragdolls",
- "sam.clearcorpses",
- "sam.cleardecals",
- },
- },
- -----------------------
- {
- name = "supporter", -- Name
- weight = 100, -- Lower weights cannot target higher weights
- -- For the below options, these rely on darkrp allowing everyone to spawn them (Found it darkrp settings)
- prop_limit = 0, -- This ranks maximum amount of props
- entity_limit = 0, -- This ranks maximum amount of entities
- npc_limit = 0, -- This ranks maximum amount of npcs
- vehicle_limit = 0, -- This ranks maximum amount of vehicles
- -- Side note: The below commands depend on DARKRP, if darkrp lets them spawn with it then they WILL spawn with it.
- physgun = false, -- Spawn with physics gun?
- toolgun = false, -- Spawn with toolgun?
- touch_others_props = false, -- Touch other peoples props?
- darkrp_fpp_admin = false, -- Give all permissions to darkrp related and FPP?
- isAdmin = false, -- what it should return on SAM:IsAdmin( ply )
- isSuperAdmin = false, -- what it should return on SAM:IsSuperAdmin( ply )
- permissions = {
- "sam.steam", -- Permission (See Below)
- "sam.donate",
- },
- },
- {
- name = "juniorsupporter", -- Name
- weight = 100, -- Lower weights cannot target higher weights
- -- For the below options, these rely on darkrp allowing everyone to spawn them (Found it darkrp settings)
- prop_limit = 0, -- This ranks maximum amount of props
- entity_limit = 0, -- This ranks maximum amount of entities
- npc_limit = 0, -- This ranks maximum amount of npcs
- vehicle_limit = 0, -- This ranks maximum amount of vehicles
- -- Side note: The below commands depend on DARKRP, if darkrp lets them spawn with it then they WILL spawn with it.
- physgun = false, -- Spawn with physics gun?
- toolgun = false, -- Spawn with toolgun?
- touch_others_props = false, -- Touch other peoples props?
- darkrp_fpp_admin = false, -- Give all permissions to darkrp related and FPP?
- isAdmin = false, -- what it should return on SAM:IsAdmin( ply )
- isSuperAdmin = false, -- what it should return on SAM:IsSuperAdmin( ply )
- permissions = {
- "sam.steam", -- Permission (See Below)
- "sam.donate",
- },
- },
- -----------------
- {
- name = "mod",
- weight = 200,
- prop_limit = 50,
- entity_limit = 0,
- npc_limit = 0,
- vehicle_limit = 0,
- physgun = true,
- toolgun = true,
- touch_others_props = false,
- darkrp_fpp_admin = false,
- isAdmin = false, -- what it should return on SAM:IsAdmin( ply )
- isSuperAdmin = false, -- what it should return on SAM:IsSuperAdmin( ply )
- permissions = {
- "sam.freeze",
- "sam.jail",
- "sam.jailtp",
- "sam.unjail",
- "sam.report",
- "sam.ban",
- "sam.kick",
- "sam.spawn",
- "sam.mute",
- "sam.vmute",
- "sam.tempvmute",
- "sam.tempmute",
- "sam.unmute",
- "sam.unvmute",
- "sam.bring",
- "sam.goto",
- "sam.return",
- },
- },
- {
- name = "admin",
- weight = 300,
- prop_limit = 50,
- entity_limit = 10,
- npc_limit = 10,
- vehicle_limit = 10,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = false,
- isAdmin = true, -- what it should return on SAM:IsAdmin( ply )
- isSuperAdmin = false, -- what it should return on SAM:IsSuperAdmin( ply )
- permissions = {
- "sam.freeze",
- "sam.jail",
- "sam.jailtp",
- "sam.unjail",
- "sam.report",
- "sam.ban",
- "sam.kick",
- "sam.spawn",
- "sam.mute",
- "sam.vmute",
- "sam.tempvmute",
- "sam.tempmute",
- "sam.unmute",
- "sam.unvmute",
- "sam.bring",
- "sam.goto",
- "sam.return",
- "sam.noclip",
- "sam.nolag",
- "sam.pickupply",
- },
- },
- {
- name = "superadmin",
- weight = 400,
- prop_limit = 10000,
- entity_limit = 1000,
- npc_limit = 1000,
- vehicle_limit = 1000,
- physgun = true,
- toolgun = true,
- touch_others_props = true,
- darkrp_fpp_admin = true,
- isAdmin = true, -- what it should return on SAM:IsAdmin( ply )
- isSuperAdmin = true, -- what it should return on SAM:IsSuperAdmin( ply )
- permissions = {
- "*",
- },
- },
- }
- --[[
- // All Permissions (See README.MD to description on each command or do !help in game)
- Misc:
- - armor = sam.armor
- - hp = sam.hp
- - cloak = sam.cloak
- - god = sam.god
- - slay = sam.slay
- - strip = sam.strip
- - scale = sam.scale
- - speed = sam.speed
- - giveammo = sam.giveammo
- - steam = sam.steam
- - model = sam.model
- - donate = sam.donate
- - Ability to pick up players = sam.pickupply
- - infammo - sam.infammo
- - limammo - sam.limammo
- Utilities:
- - ip = sam.ip
- - clearchat = sam.clearchat
- - stopsound = sam.stopsound
- - spawn = sam.spawn
- - setuser = sam.setuser
- - maplist = sam.maplist
- - map = sam.map
- - freeze = sam.freeze
- - noclip = sam.noclip
- - kick = sam.kick
- - admin = sam.admin
- - nolag = sam.nolag
- - mute = sam.mute
- - tempmute = sam.tempmute
- - vmute = sam.vmute
- - tempvmute = sam.tempvmute
- - unmute = sam.unmute
- - unvmute = sam.unvmute
- - report = sam.report
- - jail = sam.jail
- - jailtp = sam.jailtp
- - unjail = sam.unjail
- - permban = sam.permban
- - tempban = sam.tempban
- - unban = sam.unban
- - clear ragdolls = sam.clearragdolls
- - clear corpses - sam.clearcorpses
- - clear decals - sam.cleardecals
- Positional:
- - bring = sam.bring
- - goto = sam.goto
- - send = sam.send
- - return = sam.return
- DarkRP:
- - givemoney = sam.givemoney
- - removemoney = sam.removemoney
- - setmoney = sam.setmoney
- - remove = sam.remove
- --]]
- SAM_Settings.CmdEchoes = {
- -- DarkRP Commands || true to echo, false not to echo.
- ["givemoney"] = true,
- ["removemoney"] = true,
- ["setmoney"] = true,
- ["remove"] = true,
- -- Misc Commands
- ["armor"] = true,
- ["hp"] = true,
- ["cloak"] = true,
- ["god"] = true,
- ["slay"] = true,
- ["strip"] = true,
- ["scale"] = true,
- ["speed"] = true,
- ["giveammo"] = true,
- ["model"] = true,
- ["infammo"] = true,
- ["limammo"] = true,
- -- Positional Commands
- ["bring"] = true,
- ["goto"] = true,
- ["send"] = true,
- ["return"] = true,
- -- Utility Commands
- ["clearchat"] = true,
- ["stopsound"] = true,
- ["spawn"] = true,
- ["setuser"] = true,
- ["freeze"] = true,
- ["kick"] = true,
- ["admin"] = true,
- ["nolag"] = true, -- This one is adverted to staff
- ["nolageveryone"] = true, -- This one is adverted to the whole server
- ["mute"] = true,
- ["tempmute"] = true,
- ["vmute"] = true,
- ["tempvmute"] = true,
- ["unmute"] = true,
- ["unvmute"] = true,
- ["jail"] = true,
- ["jailtp"] = true,
- ["unjail"] = true,
- ["ban"] = true, -- This covers ALL ban commands
- ["unban"] = true,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement