Script Name:M79 Auto ON-OFF
Script Description:M79 will be enabled for 1 minute, then disabled for 2 minutes, then enabled for 1 minute, then disabled for 2 minutes... etc.
Original Author(s): kornsick
Core Version: 2.6.1
Code:
procedure AppOnIdle(Ticks: integer);
begin
if Ticks mod (3600*1) = 0 then begin
SetWeaponActive(0,7,false);
end;
if Ticks mod (3600*3) = 0 then begin
SetWeaponActive(0,7,true);
end;
end;
(idea taken from a Hexer server)