• Car entity help
    1 replies, posted
So on my server our cars spawn as a blocked entity and that makes it admin´s can´t pickup the cars. We can make admins pickup blocked entity´s but then they would be able to pickup doors and windows and we don´t want that. So does anyone know how we make it spawn in a world entity so we can make admins pick them up?. We are using the TCB car dealer.
Try it [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.Deny", PhysgunPickup)[/CODE]
Sorry, you need to Log In to post a reply to this thread.