forked from UNLOZE/sm-plugins
further changes to show rtv boost correctly and display in percentage
This commit is contained in:
@@ -276,7 +276,12 @@ void AttemptRTV(int client)
|
||||
if (g_Voted[client])
|
||||
{
|
||||
float rtv_worth = GetPlayerWorthRTV_boost_(client);
|
||||
ReplyToCommand(client, "[RTVE] %t", "Already Voted", g_Votes, g_VotesNeeded, rtv_worth);
|
||||
if (g_VotesNeeded == 0)
|
||||
{
|
||||
g_VotesNeeded = g_Votes;
|
||||
}
|
||||
int rtv_percentage_reached = RoundToFloor((float(g_Votes) / float(g_VotesNeeded)) * 100);
|
||||
ReplyToCommand(client, "[RTVE] %t", "Already Voted", rtv_percentage_reached, "%", rtv_worth);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -293,7 +298,12 @@ void AttemptRTV(int client)
|
||||
g_Voted[client] = true;
|
||||
|
||||
float rtv_worth = GetPlayerWorthRTV_boost_(client);
|
||||
PrintToChatAll("[RTVE] %t", "RTV Requested", name, g_Votes, g_VotesNeeded, rtv_worth);
|
||||
if (g_VotesNeeded == 0)
|
||||
{
|
||||
g_VotesNeeded = g_Votes;
|
||||
}
|
||||
int rtv_percentage_reached = RoundToFloor((float(g_Votes) / float(g_VotesNeeded)) * 100);
|
||||
PrintToChatAll("[RTVE] %t", "RTV Requested", name, rtv_percentage_reached, "%", rtv_worth);
|
||||
|
||||
if (g_Votes >= g_VotesNeeded)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user