General: Add in a API call to hide infection timer.

This commit is contained in:
2019-01-23 18:48:00 +01:00
parent 0c6b863c00
commit a251f6b755
2 changed files with 22 additions and 2 deletions

View File

@ -694,8 +694,12 @@ public Action:InfectCountdown(Handle:timer)
return Plugin_Stop;
}
// Print the countdown text to the clients.
TranslationPrintCenterTextAll(false, "Infect countdown", RoundToNearest(length - counter));
// Ask plugin API if timer should be shown.
if (APIOnInfectCountdown() == Plugin_Continue)
{
// Print the countdown text to the clients.
TranslationPrintCenterTextAll(false, "Infect countdown", RoundToNearest(length - counter));
}
counter++;