forked from UNLOZE/sm-plugins
updated fakeclients slightly and changed mapchooser for loops to not miss the last client
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user