i try with
PHP Code:
public DrawClientPanel()
{
decl String:scoreStr[1024];
Format(scoreStr, 1024, "-> Score: %d pts.", currentScore);
decl String:timerStr[1024];
Format(timerStr, 1024, "-> Timer: %d min %d sec.", timerMin, timerSec);
decl String:survStr[1024];
Format(survStr, 1024, "-> Survivor : %d.", survAlive);
decl String:percentStr[1024];
Format(percentStr, 1024, "-> Percent Travelled : %d.", mapCompletion);
new Handle:panel = CreatePanel();
DrawPanelText(panel, scoreStr);
DrawPanelText(panel, timerStr);
DrawPanelText(panel, survStr);
DrawPanelText(panel, percentStr);
for (new i = 1; i < 9; i++)
{
if(IsClientInGameHuman(i))
{
SendPanelToClient(panel, i, Menu_Panel, 2);
/*
#if READY_DEBUG
PrintToChat(i, "[DEBUG] You have been sent the Panel.");
#endif
*/
}
}
CloseHandle(panel);
}
public Action:Event_TimerSecond(Handle:timer)
{
if (!roundStarted || roundFinished)
return Plugin_Stop;
mapCompletion = GetVersusDistance();
new win = GetConVarInt(pm_var_seconds);
if (win != 0)
{
timerSec += win;
}
if (timerSec >59)
{
timerMin += 1;
timerSec = 0;
}
DrawClientPanel();
return Plugin_Continue;
}
and
PHP Code:
public DrawClientPanel()
{
decl String:scoreStr[1024];
Format(scoreStr, 1024, "-> Score: %d pts.", currentScore);
decl String:timerStr[1024];
Format(timerStr, 1024, "-> Timer: %d min %d sec.", timerMin, timerSec);
decl String:survStr[1024];
Format(survStr, 1024, "-> Survivor : %d.", survAlive);
decl String:percentStr[1024];
Format(percentStr, 1024, "-> Percent Travelled : %d.",GetVersusDistance());
new Handle:panel = CreatePanel();
DrawPanelText(panel, scoreStr);
DrawPanelText(panel, timerStr);
DrawPanelText(panel, survStr);
DrawPanelText(panel, percentStr);
for (new i = 1; i < 9; i++)
{
if(IsClientInGameHuman(i))
{
SendPanelToClient(panel, i, Menu_Panel, 2);
/*
#if READY_DEBUG
PrintToChat(i, "[DEBUG] You have been sent the Panel.");
#endif
*/
}
}
CloseHandle(panel);
}
public Action:Event_TimerSecond(Handle:timer)
{
if (!roundStarted || roundFinished)
return Plugin_Stop;
new win = GetConVarInt(pm_var_seconds);
if (win != 0)
{
timerSec += win;
}
if (timerSec >59)
{
timerMin += 1;
timerSec = 0;
}
DrawClientPanel();
return Plugin_Continue;
}
Still not work