okay so i added cars to fpp black list which disabled players picking up cars but the only way i found to let admins move cars is to let them move blocked props which also means they can move doors, is there a way i can make admins move cars but not doors?
[QUOTE][CODE]local function PhysgunPickup(ply, ent)
--If the player is an admin, and the entity is a door or a player,
if ply:IsAdmin() and (ent:GetClass():lower() == "func_door" or ent:GetClass():lower() == "player") then
return false -- Deny pickup
elseif ply:IsSuperAdmin() then
return true
end
end
hook.Add("PhysgunPickup", "Physgun.DenyShit", PhysgunPickup)[/CODE]
This will help you get started if it doesn't at least solve your problem. You may have to add exceptions for yourself, or remove the superadmin exception. I don't know, whatever you're in to.[/QUOTE]
Src: [url]https://facepunch.com/showthread.php?t=1299097[/url]
Sorry, you need to Log In to post a reply to this thread.