It depends on your settings but this should work for 24 hours time format.

 Code:
Break on

If InGroup ("Elever")
	$days = "Friday","Saturday","Sunday"
	If AScan($days, @DAY) = "-1"
		$time Join(Split(@TIME, ":"), "")
		If $time > "130000" And $time < "150000"
			"You are not allowed to logon today between 1pm and 4 pm."
			Sleep 5
			$rc = LogOff(1)
		EndIf
	EndIf
EndIf


Edited by Mart (2007-08-09 02:14 PM)
Edit Reason: Typo's
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.