procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
end;
this is one procedure in the script you have in scripts.pas.
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
If GetPlayerStat(Killer,'Team') <> GetPlayerStat(Victim,'Team') then begin
If (KillsPerMine > 0) and mines then begin
soldier[Killer] := soldier[Killer] + 1;
If soldier[Killer] mod KillsPerMine = 0 then
WriteConsole(Killer,'You may now place up to ' + inttostr(soldier[Killer] div KillsPerMine) + ' mines (/mine)',cMine);
end;
end;
end;
now this is a part of the scripts in trenchwar dominating script.
the procedure is OnPlayerKill. so just copy the content in "OnPlayerKill"
copy this:
If GetPlayerStat(Killer,'Team') <> GetPlayerStat(Victim,'Team') then begin
If (KillsPerMine > 0) and mines then begin
soldier[Killer] := soldier[Killer] + 1;
If soldier[Killer] mod KillsPerMine = 0 then
WriteConsole(Killer,'You may now place up to ' + inttostr(soldier[Killer] div KillsPerMine) + ' mines (/mine)',cMine);
end;
end;
and paste it betwen:
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
and (Paste here)
end;
note that you can only have one unique procedure so you cant have two OnPlayerKill procedures. now I see there is a few procedures that doesnt excist in the scripts.pas. simply add them.
{$VERSION 2.6.0}
const
//Teams
ALPHA = 1;
BRAVO = 2;
CHARLIE = 3;
DELTA = 4;
SPECTATOR = 5;
//Game Modes
DEATHMATCH = 0;
POINTMATCH = 1;
TEAMMATCH = 2;
CTF = 3;
RAMBO = 4;
INF = 5;
HTF = 6;
//Weapons
DEAGLES = 1;
HKMP5 = 2;
AK74 = 3;
STEYR = 4;
SPAS = 5;
RUGER = 6;
M79 = 7;
BARRET = 8;
MINIMI = 9;
MINIGUN = 10;
FLAMER = 11;
BOW = 12;
FLAMEBOW = 13;
SOCOM = 0;
KNIFE = 14;
CHAINSAW = 15;
LAW = 16;
this shall not be added twice.
if I am wrong please tell me.