mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 08:34:43 +00:00
Team Check
This commit is contained in:
parent
147c8ea6b0
commit
5f105f8c45
2 changed files with 20 additions and 14 deletions
|
|
@ -636,16 +636,19 @@ function CTFGame::flagCap(%game, %player)
|
||||||
%realtime = %game.formatTime(%held2, true);
|
%realtime = %game.formatTime(%held2, true);
|
||||||
%tm = %client.team;
|
%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];
|
if(%mincheck)
|
||||||
$flagstats::heldTeam[%tm] = %held2;
|
{
|
||||||
$flagstats::realTeam[%tm] = %realTime;
|
%prevheld2 = $flagstats::heldTeam[%tm];
|
||||||
$flagstats::nickTeam[%tm] = %client.nameBase;
|
$flagstats::heldTeam[%tm] = %held2;
|
||||||
|
$flagstats::realTeam[%tm] = %realTime;
|
||||||
|
$flagstats::nickTeam[%tm] = %client.nameBase;
|
||||||
|
}
|
||||||
|
%record = true;
|
||||||
}
|
}
|
||||||
%record = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(%record == true)
|
if(%record == true)
|
||||||
|
|
|
||||||
|
|
@ -861,16 +861,19 @@ function SCtFGame::flagCap(%game, %player)
|
||||||
%realtime = %game.formatTime(%held2, true);
|
%realtime = %game.formatTime(%held2, true);
|
||||||
%tm = %client.team;
|
%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];
|
if(%mincheck)
|
||||||
$flagstats::heldTeam[%tm] = %held2;
|
{
|
||||||
$flagstats::realTeam[%tm] = %realTime;
|
%prevheld2 = $flagstats::heldTeam[%tm];
|
||||||
$flagstats::nickTeam[%tm] = %client.nameBase;
|
$flagstats::heldTeam[%tm] = %held2;
|
||||||
|
$flagstats::realTeam[%tm] = %realTime;
|
||||||
|
$flagstats::nickTeam[%tm] = %client.nameBase;
|
||||||
|
}
|
||||||
|
%record = true;
|
||||||
}
|
}
|
||||||
%record = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(%record == true)
|
if(%record == true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue