0 )  // determines if the cloak is still locked
	{
		$avilmin = date("i",3600-(time()-$city_cloak_time));  // Used to calc the remaining time in mins
		$avilsec = date("s",3600-(time()-$city_cloak_time));  // Used to calc the remaining time in secs
		if ($city_cloak_on == 1)  // if the cloak is online waiting to unlock will show time remaining
		{

			send($sender,$botcolor."The cloaking device was enabled at".
				" ".$temptime." by ".$city_last_cloaker." and will be ".
				"available to turn back off in ".
				$avilmin." mins and ".
				$avilsec." secs.");
		}


		if ($city_cloak_off == 1)  // if the cloak is offline waiting to unlock will show time remaining
		{
			send($sender,$botcolor."The cloaking device was disabled ".
				"at ".$temptime." by ".$city_last_cloaker." and will be ".
				"available to turn back on in ".
				$avilmin." mins and ".
				$avilsec." secs.");
		}
	}
	else // handles every thing after cloak comes out of locked time
	{			// shows status of cloak
		if ($city_cloak_off == 1)
		{
			$mystatus = "disabled";
		}
		else
		{
			$mystatus = "enabled";
		}
		$rdmseed = rand(0,count($city_tag)-1);
		$rdmtag = $city_tag[$rdmseed];

		send($sender,$botcolor."The cloaking device is currently ".
			"".$mystatus.".".
			" Last changed by ".$city_last_cloaker."".
			" at ".$temptime.". Last city attack was ".$temptime2.". ".$rdmtag);
	}
}

$noreply=1;

?>

    Source: geocities.com/drakyla2000