All pastes #935708 Raw Edit

Stranded weapons restriction

public lua v1 · immutable
·published 2008-03-09 21:12 UTC
rendered paste body
function UseTool( pl, tr, toolmode )  	if toolmode == "duplicator" or toolmode == "balloon" or   	toolmode == "ignite" or toolmode == "rtcamera" or	toolmode == "hoverball" or toolmode == "lamp" or 	toolmode == "light" or toolmode == "spawner"then  		if pl:IsAdmin() then  			return true // Let admins use these tools however they wish  		else  			return false // Normal players won't be able to use them  		end  	end end    hook.Add( "CanTool", "UseTool", UseTool );