• Toolgun restricted Incorrect group.
    5 replies, posted
Hey, I just got the conna's toolpack on my garrysmod darkrp server and whenever i try to use any of them it says "Toolgun Restricted! Incorrect group!". I have assmod and i haven't had this problem until now. Also if there is a way to restrict How many props people can spawn in assmod. Also what do you change so that only owner can do rp_setmoney. Thanks, Danny
Are you using FPP or recently install something that uses it? That's what the restrict sounds like. As far as prop restriction in assmod, last time I used it there wasn't but that was a while ago. You'd need to edit the code to make it so that only the owner can use it, but an easy workaround is just change the name to something only you know. I changed mine to rp_setyourmom.
Hey, Thanks for the response. It was the FAadmin thing that auto installed with darkrp. I removed the restrictions and i changed the rp_setmoney to something different. I have seen servers where guests have 15 props, respected 20, admin 30, Superadmin 40. Its probaly a lua plugin or server autorun lua code. Im still gonna look for answers and if you find any, can you post them here for me. Thanks for your help NnyAskC. :) I found this code but it doesnt work. When you remove a prop, it doesnt remove it from the prop count. For ex: Spawned Prop. Props left 5 Spawned Prop. Props left 4 Undone prop Undone prop Undone prop Spawned Prop. Props left 3 Spawned Prop. Props left 2 Undone prop undone prop Spawned Prop. Props left 1 Spawned Prop. Props left 0 Well anyways, heres the code. local proplim = {} proplim[0] = 1000 -- Owner proplim[1] = 40 -- SuperAdmin proplim[2] = 30 -- Admin proplim[3] = 25 -- TempAdmin proplim[7] = 20 -- Respected proplim[10] = 15 -- Guest proplim[255] = 0 -- Banned hook.Add("PlayerSpawnProp","PropLimit",function(ply) local p = ply.props or 0 if p == proplim[ply:GetLevel()] then ply:ChatPrint("You hit the limit of "..proplim[ply:GetLevel()].." props!") return false else ply.props = p - 1 return true end end) hook.Add("PlayerSpawnedProp", "SetOwner", function(ply,m,e) e.LimitOwner = ply ply:ChatPrint("You can spawn " .. proplim[ply:GetLevel()] - ply.props .. " more props.") end) hook.Add("EntityRemoved", "RemoveIt", function(e) if not e:GetClass() == "prop_physics" then return end if not e.LimitOwner then return end local o = e.LimitOwner o.props = o.props - 1 end)
Okay I found something, but it uses ulx. It's called unolimited.
Quick question on your prop limit, why does it decrease the value?
[QUOTE=Chessnut;35064202]Quick question on your prop limit, why does it decrease the value?[/QUOTE] Ya its suppose to be p + 1. Sorry bout that
Sorry, you need to Log In to post a reply to this thread.