updated fakeclients slightly and changed mapchooser for loops to not miss the last client

This commit is contained in:
jenz
2026-03-27 17:34:04 +01:00
parent 6a5cbf74f1
commit 6790e463fc
4 changed files with 30 additions and 18 deletions
@@ -249,7 +249,7 @@ void UpdateRTV()
public int get_voted_rtv()
{
int Votes = 0;
for (int i = 0; i < MaxClients; i++)
for (int i = 0; i <= MaxClients; i++)
{
if (IsValidClient(i) && g_Voted[i])
{
@@ -319,10 +319,10 @@ void AttemptRTV(int client)
return;
}
update_g_VotesNeeded();
int Votes = get_voted_rtv();
if (g_Voted[client])
{
int Votes = get_voted_rtv();
ReplyToCommand(client, "[RTVE] You have already voted to Rock the Vote. (%i/%i Votes. (%i RTV boost))", Votes, g_VotesNeeded, GetPlayerWorthRTV_boost_(client));
return;
}
@@ -332,7 +332,7 @@ void AttemptRTV(int client)
g_Voted[client] = true;
Votes = get_voted_rtv();
int Votes = get_voted_rtv();
PrintToChatAll("[RTVE] %s wants to rock the vote. (%i/%i RTV reached) (%i RTV boost).", name, Votes, g_VotesNeeded, GetPlayerWorthRTV_boost_(client));