had forgotten to consider the revotes, they are added now as well
This commit is contained in:
@@ -262,6 +262,21 @@ public void OnClientDisconnect(int client)
|
|||||||
g_iClientMinutes[client] = 0;
|
g_iClientMinutes[client] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnMapVoteRunnoffWarningStart()
|
||||||
|
{
|
||||||
|
if (!g_bCorrectServer)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
char sMapname[64];
|
||||||
|
GetCurrentMap(sMapname, sizeof(sMapname));
|
||||||
|
|
||||||
|
char sQuery[512]; //picking max() is usually considered haram
|
||||||
|
Format(sQuery, sizeof(sQuery), "INSERT INTO `playtime_display_map_vote_events` (`map_id`, `current_map`, `result`) VALUES((select max(map_id) from `playtime_display_map_history`), '%s','Revote needed!')", sMapname);
|
||||||
|
g_hDatabase.Query(SQL_FinishedQueryMapVoteEndCallback, sQuery, _, DBPrio_Normal);
|
||||||
|
}
|
||||||
|
|
||||||
public void OnMapVoteEnd(const char[] map)
|
public void OnMapVoteEnd(const char[] map)
|
||||||
{
|
{
|
||||||
if (!g_bCorrectServer)
|
if (!g_bCorrectServer)
|
||||||
|
|||||||
Reference in New Issue
Block a user