function CheckUser(Y,b)if IsGroupOnly==true and Y:GetRankInGroup(GroupID)>=MinRank then b=true else b=false end if TeamOnly==true and Y.TeamColor==TeamColor or Y.Team==TeamName then b=true else b=false end if UserOnly==true then for e,s in pairs(UserNames)do if Y.Name==s then b=true break else b=false end end end if IsGroupOnly==false and(TeamOnly==false and UserOnly==false)then b=true end return b end

function CheckUser(user,val)
	if IsGroupOnly == true and user:GetRankInGroup(GroupID) >= MinRank then
		val = true
	else
		val = false
	end
	if TeamOnly == true and user.TeamColor == TeamColor or user.Team == TeamName then
		val = true
	else
		val = false
	end
	if UserOnly == true then
		for _,i in pairs(UserNames) do
			if user.Name == i then
				val = true
				break;
			else
				val = false
			end
		end
	end
	if IsGroupOnly == false and TeamOnly == false and UserOnly == false then
		val = true
	end
	return val
end