0 Members and 1 Guest are viewing this topic.
begin if text = '/kaz' then begin for l := 1 to 12 do begin If GetPlayerStat(l, 'Active') = True Then DoDamage(l,9000); end; end;end;
procedure OnFlagReturn(ID, TeamFlag: byte);beginif Teamflag = 1 then beginSetScore(ID,GetPlayerStat(ID,'KILLS')+2);Players[ID].Countdown := Playeres[ID].Countdown+15;Players[ID].Active := True;end;end;procedure OnFlagScore(ID, TeamFlag: byte);beginif Teamflag = 2 then beginGiveBonus(ID,1);GiveBonus(ID,3);GiveBonus(ID,5);Players[ID].Countdown := Playeres[ID].Countdown+30;Players[ID].Active := True;end;end;
Type Player = Record Active: Boolean; Countdown: Byte;End;var Players: Array[1 .. 32] Of Player; i, l : Byte; procedure ActivateServer();beginCommand('/addbot2 Slicer Zombie');Command('/addbot2 Slicer Zombie');Command('/addbot2 Vortex');Command('/addbot2 Elite Zombie');Command('/addbot2 Elite Zombie');Command('/addbot2 Kamakazi');Command('/addbot2 Zombie');Command('/addbot2 Zombie');Command('/addbot2 Zombie');Command('/addbot2 Zombie');Command('/addbot2 Zombie');Command('/addbot2 Zombie');end;function OnCommand(ID: byte; text: string): boolean;beginbegin if text = '/kaz' then begin for l := 1 to 12 do begin DoDamage(l,90000); end; end;end; if text = '/flamer' then begin ForceWeapon(ID,11,15,0); end; if text = '/bow' then begin ForceWeapon(ID,12,13,0); end; if text = '/nade' then begin GiveBonus(ID,4); end; if text = '/ivs' then begin GiveBonus(ID,1); end;end;procedure AppOnIdle(Ticks: integer);beginFor i := 1 To 32 Do Beginif GetPlayerStat(i,'Active') = True Then begin If Players[i].Active Then Begin If Players[i].Countdown > 0 Then Begin DrawText(i,'Double Damage! ' + IntToStr(Players[i].Countdown),60,$ffff0000,0.20,40,450); Players[i].Countdown = Players[i].Countdown - 1;end;end;end;end;end; function OnPlayerDamage(Victim, Shooter: Byte; Damage: Integer) : Integer; Begin if Players[Shooter].Active = 1 then begin Result = Damage+Damage; end; end;procedure OnJoinGame(ID, Team: byte);begin WriteConsole(ID,'*********************',$77FF00FF); WriteConsole(ID,'Server By |FA| Hacktank',$ff5555ff); WriteConsole(ID,'Type !rules for rules',$ffff0000); WriteConsole(ID,'Type !nextmap for nextmap voting',$ffff0000); WriteConsole(ID,'All Bravo are bots',$ffff0000); WriteConsole(ID,'HTTP://forums.blitwise.com',$ffffffff); WriteConsole(ID,'*********************',$77FF00FF); end;procedure OnPlayerSpeak(ID: Byte; Text: string);beginif text = '!rules' then begin WriteConsole(ID,'*********************',$99222222); WriteConsole(ID,'Server Guidelines',$ff5555ff); WriteConsole(ID,'No Pushing',$ffff0000); WriteConsole(ID,'No Flaming',$ffff0000); WriteConsole(ID,'No Hacking',$ffff0000); WriteConsole(ID,'Have Fun',$ffff0000); WriteConsole(ID,'*********************',$99222222);end;end;procedure OnFlagReturn(ID, TeamFlag: byte);beginif Teamflag = 1 then beginSetScore(ID,GetPlayerStat(ID,'KILLS')+2);Players[ID].Countdown = Players[ID].Countdown+15;Players[ID].Active := True;end;end;procedure OnFlagScore(ID, TeamFlag: byte);beginif Teamflag = 2 then beginGiveBonus(ID,1);GiveBonus(ID,3);GiveBonus(ID,5);Players[ID].Countdown = Players[ID].Countdown+30;Players[ID].Active = True;end;end;