0 Members and 1 Guest are viewing this topic.
//use this script only i ctf survival modeconstroundtime=120; //Set round time herecolor = $FFFFFF; //Set color of msgvar Timer: integer;scriptOn: byte;i: integer;procedure ActivateServer();begin scriptOn:=1; WriteLn('Round Timer is On');end;procedure AppOnIdle(Ticks: integer);begin if Timer > 0 then Timer := Timer - 1; if Timer = 90 then begin WriteConsole(0, '90 sec left!', color); end; if Timer = 60 then begin WriteConsole(0, '60 sec left!', color); end; if Timer = 30 then begin WriteConsole(0, '30 sec left!', color); end; if Timer = 15 then begin WriteConsole(0, '15 sec left!', color); end; if (Timer <= 10) and (Timer >= 1) then begin WriteConsole(0,IntToStr(Timer) + ' sec left!', color); end; if (Timer = 0) then begin for i := 1 to 32 do if ( NumPlayers < 2 ) or (GetPlayerStat(i,'Alive') = false) then begin exit end; WriteConsole(0, 'Round Time Over!', color); for i := 1 to 32 do if (GetPlayerStat(i,'Team') = 1) and (GetPlayerStat(i,'Alive') = true) then begin DoDamage(i, 4000); end; for i := 1 to 32 do if (GetPlayerStat(i,'Team') = 2) and (GetPlayerStat(i,'Alive') = true) then begin DoDamage(i, 4000); if ( NumPlayers >=2 ) and (GetPlayerStat(i,'Health') < 0) then begin SetTeamScore(2, BravoScore - 1); Timer := -1; end;end;end;end;procedure OnPlayerRespawn(ID: Byte);begin if scriptOn = 1 then begin Timer := roundtime; end;end;
if Timer = 5 then begin WriteConsole(0, '5 sec left!', $FFFFFF); end; if Timer = 4 then begin WriteConsole(0, '4 sec left!', $FFFFFF); end; if Timer = 3 then begin WriteConsole(0, '3 sec left!', $FFFFFF); end; if Timer = 2 then begin WriteConsole(0, '2 sec left!', $FFFFFF); end; if Timer = 1 then begin WriteConsole(0, '1 sec left!', $FFFFFF); end;
if (Timer <= 5) and (Timer >= 1) then begin WriteConsole(0,IntToStr(Timer) + ' sec left!',$FFFFFF);end;
1. No.