mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Team Check
This commit is contained in:
parent
147c8ea6b0
commit
5f105f8c45
|
|
@ -636,16 +636,19 @@ function CTFGame::flagCap(%game, %player)
|
|||
%realtime = %game.formatTime(%held2, true);
|
||||
%tm = %client.team;
|
||||
|
||||
if((%held2 < $flagstats::heldTeam[%tm]) || $flagstats::heldTeam[%tm] == 0)
|
||||
if(%tm == 1 || %tm == 2)
|
||||
{
|
||||
if(%mincheck)
|
||||
if((%held2 < $flagstats::heldTeam[%tm]) || $flagstats::heldTeam[%tm] == 0)
|
||||
{
|
||||
%prevheld2 = $flagstats::heldTeam[%tm];
|
||||
$flagstats::heldTeam[%tm] = %held2;
|
||||
$flagstats::realTeam[%tm] = %realTime;
|
||||
$flagstats::nickTeam[%tm] = %client.nameBase;
|
||||
if(%mincheck)
|
||||
{
|
||||
%prevheld2 = $flagstats::heldTeam[%tm];
|
||||
$flagstats::heldTeam[%tm] = %held2;
|
||||
$flagstats::realTeam[%tm] = %realTime;
|
||||
$flagstats::nickTeam[%tm] = %client.nameBase;
|
||||
}
|
||||
%record = true;
|
||||
}
|
||||
%record = true;
|
||||
}
|
||||
|
||||
if(%record == true)
|
||||
|
|
|
|||
|
|
@ -861,16 +861,19 @@ function SCtFGame::flagCap(%game, %player)
|
|||
%realtime = %game.formatTime(%held2, true);
|
||||
%tm = %client.team;
|
||||
|
||||
if((%held2 < $flagstats::heldTeam[%tm]) || $flagstats::heldTeam[%tm] == 0)
|
||||
if(%tm == 1 || %tm == 2)
|
||||
{
|
||||
if(%mincheck)
|
||||
if((%held2 < $flagstats::heldTeam[%tm]) || $flagstats::heldTeam[%tm] == 0)
|
||||
{
|
||||
%prevheld2 = $flagstats::heldTeam[%tm];
|
||||
$flagstats::heldTeam[%tm] = %held2;
|
||||
$flagstats::realTeam[%tm] = %realTime;
|
||||
$flagstats::nickTeam[%tm] = %client.nameBase;
|
||||
if(%mincheck)
|
||||
{
|
||||
%prevheld2 = $flagstats::heldTeam[%tm];
|
||||
$flagstats::heldTeam[%tm] = %held2;
|
||||
$flagstats::realTeam[%tm] = %realTime;
|
||||
$flagstats::nickTeam[%tm] = %client.nameBase;
|
||||
}
|
||||
%record = true;
|
||||
}
|
||||
%record = true;
|
||||
}
|
||||
|
||||
if(%record == true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue