Author Topic: infinite grenades script  (Read 1358 times)

0 Members and 1 Guest are viewing this topic.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
infinite grenades script
« on: June 22, 2007, 07:15:22 pm »
Can someone make me a script that gives the players infinite grenades every 10 minutes? If so that would be great!

Offline mikembm

  • Soldier
  • **
  • Posts: 210
Re: infinite grenades script
« Reply #1 on: June 22, 2007, 07:20:08 pm »
Why every 10 minutes? Are the infinite grenades going to run out? Lol.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: infinite grenades script
« Reply #2 on: June 22, 2007, 07:32:04 pm »
Sorry...
Every other 10 minutes grenades are infinite, where you can keep throwing them until the 10 minutes are over, then you have have wait 10 minutes for it to happen again, I am trying to get an arcade server going soon...

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: infinite grenades script
« Reply #3 on: June 22, 2007, 09:35:32 pm »
Can't be done with scripting sorry.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: infinite grenades script
« Reply #4 on: June 22, 2007, 10:26:16 pm »
Crap...
Is there a way to do it with the knifes?

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: infinite grenades script
« Reply #5 on: June 23, 2007, 08:33:50 am »
Can't be done with scripting sorry.

not true ;Q

Code: [Select]
var kitID: array[1..32] of byte;
      infinitenades: boolean;

procedure AppOnIdle(Ticks: integer);
var i: byte;
begin
  If Ticks mod 36000 = 0 then
    case infinitenades of
      true: infinitenades:=false;
      false: infinitenades:=true;
    end;
 
  If infinitenades then
    for i:=1 to 32 do begin
      If (GetObjectStat(kitID[i],'Active') = true) and (GetObjectStat(kitID[i],'Style') = 17) then
        KillObject(kitID[i]);
      If (GetPlayerStat(i,'Active') = true) then
        kitID[i]:=SpawnObject(GetPlayerStat(i,'X'),GetPlayerStat(i,'Y'),17);
    end;     
end;
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: infinite grenades script
« Reply #6 on: June 23, 2007, 08:24:25 pm »
Thanks!