• Picking up cars (TDM)
    2 replies, posted
I want a usergroup off ULX called "owner" to be able to pick up TDM Cars and cars with their physgun. I've done this but this only works for Admin and SuperAdmin: [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]
[QUOTE=LukeDell;47604204]I want a usergroup off ULX called "owner" to be able to pick up TDM Cars and cars with their physgun. I've done this but this only works for Admin and SuperAdmin: [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][/QUOTE] [I]You[/I] didn't do this, [URL="http://facepunch.com/showthread.php?t=1299097&p=41838794&viewfull=1#post41838794"]Vegasx did[/URL].
Well done. Any help?
Sorry, you need to Log In to post a reply to this thread.