Script Name: Bonus PTS for kills without death...
Script Description: Player gains bonus points for kills without death
Â
If somebody gained points, he can't do this again.
Simple script. Usefull with survival mode...
also works good in rest of gameplays : )
Original Author: Vyka (Wykalaczka)
Core Version: 2,6,3
Code:const
color=$dd00dd;Â Â Â Â Â Â // color of msg, set your own
frags=3;Â Â Â Â Â Â Â Â Â Â Â Â // kills needed to gain points
bonus=3;Â Â Â Â Â Â Â Â Â Â Â // points adding to player
var
kills: array [1..32] of integer;
bool: array [1..32] of boolean;
i: integer;
procedure ActivateServer();
begin
for i:=1 to 32 do kills[i]:=0
end;
procedure OnPlayerRespawn(ID: Byte);
begin
kills[ID]:=0;
bool[ID]:=true;
end;
procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);
begin
kills[Victim]:=0;
kills[Killer]:=kills[Killer]+1;
if ((kills[Killer]=frags) and (bool[Killer]=true)) then begin
SetScore(Killer,GetPlayerStat(Killer,'KILLS')+bonus);
WriteConsole(0,+idtoname(Killer)+' gained '+inttostr(bonus)+' points for '+inttostr(frags)+' kills without death!', color);
bool[Killer]:=false;
end;
end;
enjoy  : )