Need help with this plugin -
https://github.com/dadeppa/multicfg-deathmatch
At present this MultiCFG plugin gives alert of "Changing Game Mode to..." in the last 10 sec prior to next game mode change, when used with H3bus's DM Advance Plugin.
I am trying to introduce a remaining time, alert message, of the current round that is in progress, once when around 1 minute of the current game mode is left, before the last 10 sec message kicks in to change to the next game mode.
I have inserted the following code - to display remaining time left in current game mode, for e.g here from 65th to 60th sec - to effect this.
PHP Code:
if(iCurrentGameTime <= 65 && iCurrentGameTime >= 60)
{
char sAdvertMessage[255];
Format(sAdvertMessage, sizeof(sAdvertMessage), "<font color='#ff0000'>Game Mode</font>\n <font color='#66ff66'>%s</font> ending in <font color='#66ff66'>%i</font> seconds", sCurrentGameName, iCurrentGameTime)
if(iCurrentGameTime >= 60)
{
PrintHintTextToAll(sAdvertMessage);
}
}
The remaining time message correctly gets displayed at the 65th second with this inserted code, timer counts down in sync with the Game timer till the 60th second, however post that the message stays static with 60th second displayed for another 3-4 secs before it is removed.
Instead of displaying "Remaining time for game mode xx secs" from 65th sec to 60th second it continues till 56th sec but with the display stopped at 60th.
I have tried all combinations of adjusting iCurrentgametime values & range but this additional 4 sec countdown seems to get added in all scenarios and a static Hint Message display persists for those 4 secs.
Request if anyone can look at the code and help me correct this. I have attached the modified scripting file