• GMOD 13 DarkRP rp_setmoney
    4 replies, posted
Is there anyway to remove rp_setmoney? I have superadmins that absolutely abuse it
Why not just demote them?
Open all files in Notepad++ Find "rp_setmoney" and remove the fonction Sorry for my bad english
Change its permissions or remove their super admin access.
To completely remove the command on the latest version of DarkRP go to DarkRP/gamemode/server/admincc.lua line 330. Remove line 330-367. Code to be removed should look like this: [lua] local function ccSetMoney(ply, cmd, args) if not tonumber(args[2]) then ply:PrintMessage(HUD_PRINTCONSOLE, "Invalid arguments") return end if ply:EntIndex() ~= 0 and not ply:IsSuperAdmin() then ply:PrintMessage(2, string.format(LANGUAGE.need_sadmin, "rp_setmoney")) return end local amount = math.floor(tonumber(args[2])) local target = GAMEMODE:FindPlayer(args[1]) if target then local nick = "" DB.StoreMoney(target, amount) if ply:EntIndex() == 0 then print("Set " .. target:Nick() .. "'s money to: " .. CUR .. amount) nick = "Console" else ply:PrintMessage(2, "Set " .. target:Nick() .. "'s money to: " .. CUR .. amount) nick = ply:Nick() end target:PrintMessage(2, nick .. " set your money to: " .. CUR .. amount) if ply:EntIndex() == 0 then DB.Log("Console set "..target:SteamName().."'s money to "..CUR..amount, nil, Color(30, 30, 30)) else DB.Log(ply:SteamName().." ("..ply:SteamID()..") set "..target:SteamName().."'s money to "..CUR..amount, nil, Color(30, 30, 30)) end else if ply:EntIndex() == 0 then print("Could not find player: " .. args[1]) else ply:PrintMessage(2, "Could not find player: " .. args[1]) end return end end concommand.Add("rp_setmoney", ccSetMoney)[/lua]
Sorry, you need to Log In to post a reply to this thread.