0 Members and 1 Guest are viewing this topic.
type tCombo = record H,T: integer;end;constcolor=$ff0000;varCombo: array [1..32] of tCombo;i: integer;Procedure ActivateServer();begin for i:=1 to 32 do begin Combo[i].H:=0; Combo[i].T:=0; end;end;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);begin inc(Combo[Killer].H, 1); Combo[Killer].T:= 4; case Combo[Killer].H of 2: WriteConsole(0,'Double kill! - '+idtoname(killer),color); 3: WriteConsole(0,'Triple kill! - '+idtoname(killer),color); 4: WriteConsole(0,'Multi kill! - '+idtoname(killer),color); 5: WriteConsole(0,'Multi kill x2! - '+idtoname(killer),color); end;end;procedure AppOnIdle(Ticks: integer);begin for i:= 1 to 32 do if Combo[i].T > 0 then begin dec(Combo[i].T, 1); end else if Combo[i].H > 0 then Combo[i].H:= 0;end;procedure OnJoinTeam(ID, Team: byte);begin Combo[ID].H:=0; Combo[ID].T:=0;end;