All pastes #897688 Raw Edit

Mine

public text v1 · immutable
·published 2008-02-09 19:18 UTC
rendered paste body
	if args[1]=="1" then
		local tr = util.GetPlayerTrace( ply, aimvec )
		local trace = util.TraceLine( tr )
		local tr2=trace.Entity
		if not ValidEntity(tr2) then return end
			if IsNormalDoor(tr2) then
				tr2=tr2.pimp
			end
		if ply:IsDoorOwner(tr2) then
			tr2:Fire("unlock","",0)
			ply:SendServerMessage("UnLocked.")
		else
			ply:SendServerMessage("You do not own this.")
		end
	end