• DarkRP restricting money commands help
    1 replies, posted
Obviously we're told not to remove or mess with the default admin/superadmin groups too much and not to mess with the core files, but i've been searching for a while and can't find a solid answer on how to prevent superadmins from using /setmoney and /addmoney commands without completely disabling them by doing DarkRP.removeChatCommand fix I found on another thread idk what changed in my server as I didn't mess with anything but now superadmin cant use the 2 commands which i believe is good, but they can still use rp_resetallmoney and that's problematic because I believe the command is within the core files and wanted to know if i commented out all of the code would it break anything major? gamemodes > darkrp > gamemode > modules > base > sv_data.lua local function resetAllMoney(ply, cmd, args)     if ply:EntIndex() ~= 0 and not ply:IsSuperAdmin() then return end     MySQLite.query("UPDATE darkrp_player SET wallet = " .. GAMEMODE.Config.startingmoney .. " ;")     for _, v in ipairs(player.GetAll()) do         v:setDarkRPVar("money", GAMEMODE.Config.startingmoney)     end     if ply:IsPlayer() then         DarkRP.notifyAll(0, 4, DarkRP.getPhrase("reset_money", ply:Nick()))     else         DarkRP.notifyAll(0, 4, DarkRP.getPhrase("reset_money", "Console"))     end end concommand.Add("rp_resetallmoney", resetAllMoney) can I comment this out without causing problems?
concommand.Remove (for the concommand) Restrict Setmoney (for the chat command)
Sorry, you need to Log In to post a reply to this thread.