0 Members and 2 Guests are viewing this topic.
varodzysk: array[1..32] of integer;witfg: array[1..2] of byte;procedure OnFlagGrab(ID, TeamFlag: byte; GrabbedInBase: boolean);beginwitfg[TeamFlag] := 1;end;procedure OnFlagReturn(ID, TeamFlag: byte);begin if witfg[TeamFlag] = 1 then begin if odzysk[ID] < 10 then begin SetScore(ID,GetPlayerStat(ID,'KILLS')+2); SayToPlayer(ID,'Flag Returned! 2 points for you! (max 10 extra points)'); odzysk[ID]:= odzysk[ID] + 2; witfg[TeamFlag]:= 0; end; end;end;procedure OnMapChange(NewMap: string);vari: integer;k: byte;beginfor i := 1 to 32 doodzysk[i] := 0;for k := 1 to 2 dowitfg[k] := 0;end;procedure OnJoinGame(ID, Team: byte);beginodzysk[ID] := 0;end;
you can just shoot the flag out of your base and return it to get the extra points...you should check if the flag has been stolen first or the flag carrier has been killed
My new password is secure as shit Mate, I am not sure Shit is even secured nowadays.
witfg: boolean;
Atm you can't download it. Somone forgot about fileĀ
SayToPlayer(ID,'Flag Returned! 2 points for you! (max 10 extra points)');
WriteCosnsole(ID,TEXT,COLOR);
Also why do you need onFlagGrab?
Quote from: Norbo on September 14, 2008, 04:21:39 amAlso why do you need onFlagGrab?so that people dont abuse it by shooting the flag out of base and returning