Author Topic: Killing spree for death match PLZZ?  (Read 974 times)

0 Members and 1 Guest are viewing this topic.

Offline TAzZ-BOT

  • Major(1)
  • Posts: 25
  • lol SOLDAT DA BOMB. I MAKE SONG ABOUT IT!
Killing spree for death match PLZZ?
« on: October 27, 2007, 12:17:07 pm »
Does anyone have a Killing Spree script for deathmatch? If so plzz tell me it. If not please dont go on how i should make my own and all that cuz i just need the script. I could never be able to script on my own.

And a Multi Kill script for deathmatch would be nice too  ;D
Hey i make music. Will you get a room with me now? LOL

Offline Neotype

  • Major(1)
  • Posts: 2
Re: Killing spree for death match PLZZ?
« Reply #1 on: October 29, 2007, 07:36:22 am »
Here you go.

Code: [Select]
var
kills: array[1..32] of byte;
Slot: byte;
odzysk: array[1..32] of integer;
witfg: array[1..2] of byte;
spree: array[1..17] of string;
killsNeeded: byte;

procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
killsNeeded := 5;     //Number of kills before killing spree starts.
spree[3] := ' is on a Killing Spree!';
spree[5] := ' is on a Rampage!';
spree[7] := ' is Dominating!';
spree[9] := ' is Unstoppable!';
spree[11] := ' is like a God!';
if killer <> victim then begin
if (GetPlayerStat(killer,'team') <> GetPlayerStat(victim,'team')) then begin
kills[killer] := kills[killer] + 1;
if (kills[victim] >= killsNeeded) then begin
Command('/say ' + GetplayerStat(victim,'name') + '''s ' + inttostr(kills[victim]) + ' kills spree ended by ' + GetPlayerStat(killer,'name'));
end;
kills[victim] := 0;
if (kills[killer] <= Arrayhigh(spree) + 1) then begin
if (spree[kills[killer]] <> '') then Command('/say ' + GetPlayerStat(killer,'name') + spree[kills[killer]]);
end;
end
else begin
if (kills[killer] > 0) then SayToPlayer(killer, 'Your spree kills have been reset for team killing');
kills[killer] := 0;
end;
end;
end;

Offline TAzZ-BOT

  • Major(1)
  • Posts: 25
  • lol SOLDAT DA BOMB. I MAKE SONG ABOUT IT!
Re: Killing spree for death match PLZZ?
« Reply #2 on: October 29, 2007, 05:00:46 pm »
OMG THANK YOU SO MUCH!!!1 Doy you know a multikill script two?
Hey i make music. Will you get a room with me now? LOL

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host