Author Topic: OnFlagScore ID  (Read 1626 times)

0 Members and 1 Guest are viewing this topic.

Offline mikembm

  • Soldier
  • **
  • Posts: 210
OnFlagScore ID
« on: February 05, 2007, 12:48:09 am »
The ID for OnFlagScore always returns 0 for me....

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: OnFlagScore ID
« Reply #1 on: February 05, 2007, 01:00:32 am »
I know, already fixed it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: OnFlagScore ID
« Reply #2 on: February 05, 2007, 08:03:31 am »
I know, already fixed it.
in 2.5.3 or 2.6?


Offline iftach

  • Major(1)
  • Posts: 16
Re: OnFlagScore ID
« Reply #4 on: April 14, 2007, 11:57:05 am »
here a way around that bug.

Code: [Select]
var
  plflag: array[1..2] of integer;

procedure OnFlagGrab(ID: integer;TeamFlag: byte;GrabbedInBase: boolean);
begin
plflag[TeamFlag]:=ID;
end;

procedure OnFlagScore(ID: integer;TeamFlag: byte);
begin
//now the plflag[TeamFlag] = ID of the scoring player.
command('/say scoring player id: ' + inttostr(plflag[TeamFlag]));
end;
« Last Edit: April 14, 2007, 12:00:25 pm by iftach »