added showing percentage worth to both mapvote menu and to rtv messages

This commit is contained in:
jenz
2023-09-29 20:14:21 +02:00
parent 85504bef9b
commit 20ddc26c76
4 changed files with 26 additions and 13 deletions
@@ -297,7 +297,8 @@ void AttemptRTV(int client)
{
rtv_percentage_reached = 100;
}
ReplyToCommand(client, "[RTVE] %t", "Already Voted", rtv_percentage_reached, "%", rtv_worth);
ReplyToCommand(client, "[RTVE] %t", "Already Voted", rtv_percentage_reached, rtv_worth,
RoundToFloor((GetPlayerWorthRTV_(client) / float(g_VotesNeeded)) * 100));
return;
}
@@ -323,7 +324,8 @@ void AttemptRTV(int client)
{
rtv_percentage_reached = 100;
}
PrintToChatAll("[RTVE] %t", "RTV Requested", name, rtv_percentage_reached, "%", rtv_worth);
PrintToChatAll("[RTVE] %t", "RTV Requested", name, rtv_percentage_reached, rtv_worth,
RoundToFloor((GetPlayerWorthRTV_(client) / float(g_VotesNeeded)) * 100));
if (Votes >= g_VotesNeeded)
{