On my darkrp server, admins can materialize peoples body's and face pose players. My darkrp server is fully updated, I don't know how to change this.
[lua]function CheckTool(ply, trace)
local ent = trace.Entity
if IsValid(ent) and ent:IsPlayer() then
return false
end
end
hook.Add("CanTool", "PreventPlayerTooling", CheckTool)[/lua]
Needs to go serverside somewhere.
EDIT: If you wanted to limit certain tools only you could do something like:
[lua]
local BlockedTools = {"remover", "material"}
function CheckTool(ply, trace, tool)
local ent = trace.Entity
if IsValid(ent) and ent:IsPlayer() and BlockedTools[tool] then
return false
end
end
hook.Add("CanTool", "PreventPlayerTooling", CheckTool)[/lua]
Sorry, you need to Log In to post a reply to this thread.