set cap to 100%
This commit is contained in:
parent
fc2f5d6eb9
commit
47085dcacf
@ -297,8 +297,12 @@ void AttemptRTV(int client)
|
|||||||
{
|
{
|
||||||
rtv_percentage_reached = 100;
|
rtv_percentage_reached = 100;
|
||||||
}
|
}
|
||||||
ReplyToCommand(client, "[RTVE] %t", "Already Voted", rtv_percentage_reached, rtv_worth,
|
int clients_percentage = RoundToFloor((GetPlayerWorthRTV_(client) / float(g_VotesNeeded)) * 100);
|
||||||
RoundToFloor((GetPlayerWorthRTV_(client) / float(g_VotesNeeded)) * 100));
|
if (clients_percentage > 100)
|
||||||
|
{
|
||||||
|
clients_percentage = 100;
|
||||||
|
}
|
||||||
|
ReplyToCommand(client, "[RTVE] %t", "Already Voted", rtv_percentage_reached, rtv_worth, clients_percentage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -324,8 +328,12 @@ void AttemptRTV(int client)
|
|||||||
{
|
{
|
||||||
rtv_percentage_reached = 100;
|
rtv_percentage_reached = 100;
|
||||||
}
|
}
|
||||||
PrintToChatAll("[RTVE] %t", "RTV Requested", name, rtv_percentage_reached, rtv_worth,
|
int clients_percentage = RoundToFloor((GetPlayerWorthRTV_(client) / float(g_VotesNeeded)) * 100);
|
||||||
RoundToFloor((GetPlayerWorthRTV_(client) / float(g_VotesNeeded)) * 100));
|
if (clients_percentage > 100)
|
||||||
|
{
|
||||||
|
clients_percentage = 100;
|
||||||
|
}
|
||||||
|
PrintToChatAll("[RTVE] %t", "RTV Requested", name, rtv_percentage_reached, rtv_worth, clients_percentage);
|
||||||
|
|
||||||
if (Votes >= g_VotesNeeded)
|
if (Votes >= g_VotesNeeded)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user