0 Members and 1 Guest are viewing this topic.
var killcount: array[1..32] of integer;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);begin killcount[victim] := 0; if Killer <> Victim then begin killcount[killer] := killcount[killer] + 1; if killcount[killer] >= 3 then begin WriteConsole(Killer,'You got an extra point!',$EE81FAA1); SetScore(killer,GetPlayerStat(killer,'KILLS') + 1); end; if GetPlayerStat(Victim, 'Flagger') = True then begin // Is victim flagger? SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score WriteConsole(Killer,'You Gained 5 Extra Points for Killing Flagger',$EE81FAA1); end if GetPlayerStat(Killer, 'Flagger') = True then begin // Is Killer flagger? SetScore(Killer,GetPlayerStat(Killer,'Kills')+3); // This will add 3 points to killer's score WriteConsole(Killer,'You Gained 3 Extra Points for Killing as a Flagger',$EE81FAA1); end; end;end;
var WasGrabbed: array[1..2] of boolean;procedure OnFlagScore(ID, TeamFlag: byte);begin WriteConsole(ID,'You got 3 points for scoring!',$81FAA1); SetScore(ID, GetPlayerStat(ID,'Kills') + 3);end;procedure OnFlagReturn(ID, TeamFlag: byte);begin if WasGrabbed[TeamFlag] then begin WriteConsole(ID,'You got 2 points for returning the flag!',$81FAA1); SetScore(ID, GetPlayerStat(ID,'Kills') + 2); WasGrabbed[TeamFlag]:= false; end;end;procedure OnFlagGrab(ID, TeamFlag: byte; GrabbedInBase: boolean);begin WasGrabbed[TeamFlag]:= true;end;procedure OnMapChange(NewMap: string);begin WasGrabbed[1]:= false; WasGrabbed[2]:= false;end;
var killcount: array[1..32] of integer; WasGrabbed: array[1..2] of boolean;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);begin killcount[victim] := 0; if Killer <> Victim then begin killcount[killer] := killcount[killer] + 1; if killcount[killer] >= 3 then begin WriteConsole(Killer,'You got an extra point!',$EE81FAA1); SetScore(killer,GetPlayerStat(killer,'KILLS') + 1); end; if GetPlayerStat(Victim, 'Flagger') = True then begin // Is victim flagger? SetScore(Killer,GetPlayerStat(Killer,'Kills')+5); // This will add 5 points to killer's score WriteConsole(Killer,'You Gained 5 Extra Points for Killing Flagger',$EE81FAA1); end if GetPlayerStat(Killer, 'Flagger') = True then begin // Is Killer flagger? SetScore(Killer,GetPlayerStat(Killer,'Kills')+3); // This will add 3 points to killer's score WriteConsole(Killer,'You Gained 3 Extra Points for Killing as a Flagger',$EE81FAA1); end; end;end;procedure OnFlagScore(ID, TeamFlag: byte);begin WriteConsole(ID,'You got 3 points for scoring!',$81FAA1); SetScore(ID, GetPlayerStat(ID,'Kills') + 3);end;procedure OnFlagReturn(ID, TeamFlag: byte);begin if WasGrabbed[TeamFlag] then begin WriteConsole(ID,'You got 2 points for returning the flag!',$81FAA1); SetScore(ID, GetPlayerStat(ID,'Kills') + 2); WasGrabbed[TeamFlag]:= false; end;end;procedure OnFlagGrab(ID, TeamFlag: byte; GrabbedInBase: boolean);begin WasGrabbed[TeamFlag]:= true;end;procedure OnMapChange(NewMap: string);begin WasGrabbed[1]:= false; WasGrabbed[2]:= false;end;