Author Topic: M79 Auto ON-OFF  (Read 3194 times)

0 Members and 1 Guest are viewing this topic.

Offline kornsick

  • Major(1)
  • Posts: 42
  • Fhtagn!
    • Soldat Server @ StarNet
M79 Auto ON-OFF
« on: June 17, 2007, 03:29:10 am »
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:
Code: [Select]
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)
« Last Edit: June 18, 2007, 03:32:41 pm by kornsick »

Offline HEX

  • Major
  • *
  • Posts: 77
  • =tNt=
    • SoldatX Brazilian Community
Re: M79 Auto ON-OFF
« Reply #1 on: June 18, 2007, 06:53:47 am »
Why would I use this?



Offline kornsick

  • Major(1)
  • Posts: 42
  • Fhtagn!
    • Soldat Server @ StarNet
Re: M79 Auto ON-OFF
« Reply #2 on: June 18, 2007, 08:14:15 am »
Because you like milk? O_o

p.s.
I noticed that on my server people use only this weapon... so i gave them a break. Any questions?
« Last Edit: June 18, 2007, 08:16:01 am by kornsick »

Offline HEX

  • Major
  • *
  • Posts: 77
  • =tNt=
    • SoldatX Brazilian Community
Re: M79 Auto ON-OFF
« Reply #3 on: June 18, 2007, 08:42:24 am »
Well I like milk, but I won't use this script.
Nice work, tough. :)

« Last Edit: June 18, 2007, 08:44:14 am by HEX »



Offline Detector

  • Major
  • *
  • Posts: 55
Re: M79 Auto ON-OFF
« Reply #4 on: June 18, 2007, 09:47:03 am »
Quote
(idea taken from some server)
the idea was taken from Hexer server.
Read.Only.

Offline kornsick

  • Major(1)
  • Posts: 42
  • Fhtagn!
    • Soldat Server @ StarNet
Re: M79 Auto ON-OFF
« Reply #5 on: June 18, 2007, 03:32:20 pm »
oh, thanks