hi guys i changed this to get the last round for the team that is in advantage. i thougt it works but the code fails in 1 situation when the teams don't swap at the beggining (g_twon) it always says that team b is going to win even when is team a. But with g_twon case there is no problem,,,
public LRFif() {
if ((g_iScore[1] == 16) || (g_iScore[0] == 16))
return PLUGIN_HANDLED
if (g_Twon)
{
if (g_bSecondHalf)
{
if(g_iScore[0] > g_iScore[1])
{
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para a Equipa A vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[0], g_iScore[1])
}
else
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para a Equipa B vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[0], g_iScore[1])
}
}
else
{
-- this part always put team b in advantge --
if (g_bSecondHalf)
{
if(g_iScore[1] > g_iScore[0])
{
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para a Equipa A vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[1], g_iScore[0])
}
else
set_hudmessage(255, 255, 255, 0.06, 0.62, 0, 6.0, 12.0)
ShowSyncHudMsg(0, g_MsgSync6, "Falta 1 ronda para uma Equipa B vencer^n (Equipa A) %d - %d (Equipa B)", g_iScore[1], g_iScore[0])
}
}
return PLUGIN_HANDLED
}
Last edited by bobmirk; 01-06-2013 at 09:03.
|