diff --git a/discord_verificiation/scripting/include/unloze_playtime.inc b/discord_verificiation/scripting/include/unloze_playtime.inc index 7d1036af..83bbc68a 100755 --- a/discord_verificiation/scripting/include/unloze_playtime.inc +++ b/discord_verificiation/scripting/include/unloze_playtime.inc @@ -17,3 +17,8 @@ native int GetAveragePlayerTimeOnServerRTV(); * @returns the players worth in connected hours for the rtv */ native int GetPlayerWorthRTV_(int client); + +/** +* @returns the players rtv amount boost +*/ +native float GetPlayerWorthRTV_boost_(int client); diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 8182826b..1f48ca07 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -224,7 +224,7 @@ public int Native_GetPlayerWorthRTV(Handle plugin, int numParams) ThrowNativeError(SP_ERROR_NATIVE, "Client is not in-game."); return -1; } - return GetPlayerWorthRTV(client); + return view_as(GetPlayerWorthRTV(client)); } public int GetPlayerWorthRTV(int client) @@ -240,7 +240,7 @@ public int GetPlayerWorthRTV(int client) g_fPlayerRTVWorth[client] = float(g_iPlayerRTVCapacity); return avg * g_iPlayerRTVCapacity; } - g_fPlayerRTVWorth[client] = float(g_iPlayerTimeServer[client] / avg); + g_fPlayerRTVWorth[client] = float(g_iPlayerTimeServer[client]) / float(avg); return avg * (g_iPlayerTimeServer[client] / avg); }