summaryrefslogtreecommitdiff
path: root/sourcemod-1.5-dev/scripting/stats.sp
diff options
context:
space:
mode:
authornavewindre <nw@moneybot.cc>2023-12-15 06:02:12 +0100
committernavewindre <nw@moneybot.cc>2023-12-15 06:02:12 +0100
commite99b9c6bac7f5b835f025fa1c342e315b3c3d812 (patch)
treef6667c0e3e9eefd5fcb8b41e5710747eec75527f /sourcemod-1.5-dev/scripting/stats.sp
parent1c54f685bb080b5409e729ed3bc8fc5ad4e1d774 (diff)
aaaa
Diffstat (limited to 'sourcemod-1.5-dev/scripting/stats.sp')
-rw-r--r--sourcemod-1.5-dev/scripting/stats.sp18
1 files changed, 16 insertions, 2 deletions
diff --git a/sourcemod-1.5-dev/scripting/stats.sp b/sourcemod-1.5-dev/scripting/stats.sp
index f006f60..bb0b1f1 100644
--- a/sourcemod-1.5-dev/scripting/stats.sp
+++ b/sourcemod-1.5-dev/scripting/stats.sp
@@ -418,7 +418,7 @@ public Float:GetPlayerPoints( client ) {
points += float(g_playerStats[client][plKills]) * 1;
points -= float(g_playerStats[client][plDeaths]) * 0.9;
points += float(g_playerStats[client][plRoundwins]) * 0.5;
- points -= float(g_playerStats[client][plRoundlosses]) * 0.5;
+ points -= float(g_playerStats[client][plRoundlosses]) * 0.5;
points += GetLJScore( client, _:LT_LJ );
points += GetLJScore( client, _:LT_CJ );
points += GetLJScore( client, _:LT_BJ );
@@ -429,7 +429,7 @@ public Float:GetPlayerPoints( client ) {
points += GetLJScore( client, _:LT_WJ );
points += GetKDScore( client );
- if( points < 0 )
+ if( points < 0.0 )
points = 0.0;
return points;
@@ -972,7 +972,21 @@ public DisplayClientStatsToSelf( client ) {
*/
CPrintToChatEx( client, client, chatOutput );
+
+ new String:mapName[64];
+ GetCurrentMap( mapName, sizeof(mapName) );
+
+ if( !strncmp( mapName, "kz_", 3 )
+ || !strncmp( mapName, "bkz_", 4 )
+ || !strncmp( mapName, "xc_", 3 )
+ || !strncmp( mapName, "surf_", 5 )
+ || !strncmp( mapName, "bhop_", 5 ) ) {
+ CreateTimer( 0.1, Timer_SendMsg2, client, TIMER_FLAG_NO_MAPCHANGE );
+ return 0;
+ }
+
CreateTimer( 0.1, Timer_SendMsg, client, TIMER_FLAG_NO_MAPCHANGE );
+ return 0;
}
public DisplayClientStats( client, target ) {