diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 1f48ca07..b771efe5 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -235,7 +235,7 @@ public int GetPlayerWorthRTV(int client) g_fPlayerRTVWorth[client] = 1.0; return avg; } - if ((g_iPlayerTimeServer[client] / avg) > g_iPlayerRTVCapacity) + if ((float(g_iPlayerTimeServer[client]) / float(avg)) > g_iPlayerRTVCapacity) { g_fPlayerRTVWorth[client] = float(g_iPlayerRTVCapacity); return avg * g_iPlayerRTVCapacity; @@ -246,7 +246,7 @@ public int GetPlayerWorthRTV(int client) public int GetAveragePlayerActiveTimeServerRTV() { - //for rockthevote average we include spectators and afks. just not fakes, nosteamers and autismbots, thats why a different function is made. + //for rockthevote and mapvote average we include spectators and afks. just not fakes, nosteamers and autismbots, thats why a different function is made. int total_hours = 0; int total_players = 0; for (int i = 0; i < MaxClients; i++)