0 Members and 1 Guest are viewing this topic.
// Bellamy's Assassin Modvar; AlphaFlag: byte; BravoFlag: byte; True: boolean; False: boolean;procedure OnFlagGrab(ID, TeamFlag: byte;GrabbedInBase: boolean)begin if RedFlag then WriteConsole(0,'Kill the blue assassin!!',$FF0000); if BlueFlag then WriteConsole(0,'Kill the red assassin!!',$FF0000); end; end;end;function GetPlayerStat(ID: byte; Stat: string): Variantbegin WriteLn('Player1s flagger is '+inttostr(GetPlayerStat(1,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player2s flagger is '+inttostr(GetPlayerStat(2,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player3s flagger is '+inttostr(GetPlayerStat(3,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player4s flagger is '+inttostr(GetPlayerStat(4,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player5s flagger is '+inttostr(GetPlayerStat(5,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player6s flagger is '+inttostr(GetPlayerStat(6,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player7s flagger is '+inttostr(GetPlayerStat(7,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player8s flagger is '+inttostr(GetPlayerStat(8,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player9s flagger is '+inttostr(GetPlayerStat(9,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player10s flagger is '+inttostr(GetPlayerStat(10,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player11s flagger is '+inttostr(GetPlayerStat(11,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player12s flagger is '+inttostr(GetPlayerStat(12,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player13s flagger is '+inttostr(GetPlayerStat(13,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player14s flagger is '+inttostr(GetPlayerStat(14,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player15s flagger is '+inttostr(GetPlayerStat(15,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;begin WriteLn('Player16s flagger is '+inttostr(GetPlayerStat(16,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;
Code: [Select]// Bellamy's Assassin Modvar; True: boolean; False: boolean;
// Bellamy's Assassin Modvar; True: boolean; False: boolean;
Code: [Select]procedure OnFlagGrab(ID, TeamFlag: byte;GrabbedInBase: boolean)[b];[/b] // you forgot the semicolon too.begin if RedFlag then WriteConsole(0,'Kill the blue assassin!!',$FF0000); if BlueFlag then WriteConsole(0,'Kill the red assassin!!',$FF0000); end; end;end;
procedure OnFlagGrab(ID, TeamFlag: byte;GrabbedInBase: boolean)[b];[/b] // you forgot the semicolon too.begin if RedFlag then WriteConsole(0,'Kill the blue assassin!!',$FF0000); if BlueFlag then WriteConsole(0,'Kill the red assassin!!',$FF0000); end; end;end;
end;begin
function GetPlayerStat(ID: byte; Stat: string): Variantbegin WriteLn('Player1s flagger is '+inttostr(GetPlayerStat(1,'flagger))); if True then ForceWeapon(1, 8, 12, 100) if False then DoDamage(1,50); end; end; end;end;
procedure whatever();var i: Integer;begin for i := 1 to 16 do begin writeLn('Player '+intToStr(i)+'s flagger is '+intToStr(GetPlayerStat(1,'flagger'))); if GetPlayerStat(1,'flagger') then ForceWeapon(i, 8, 12, 100); if not GetPlayerStat(1,'flagger') then then DoDamage(i,50); end;end;
ForceWeapon(ID, 'flagger'), 8, 12, 100);
Code: [Select]ForceWeapon(ID, 'flagger'), 8, 12, 100);
procedure ForceWeapon(ID, Primary, Secondary, Ammo: Byte);
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".