summaryrefslogtreecommitdiff
path: root/sourcemod-1.5-dev
diff options
context:
space:
mode:
Diffstat (limited to 'sourcemod-1.5-dev')
-rw-r--r--sourcemod-1.5-dev/scripting/ljstats.sp2
-rw-r--r--sourcemod-1.5-dev/scripting/stats.sp18
2 files changed, 17 insertions, 3 deletions
diff --git a/sourcemod-1.5-dev/scripting/ljstats.sp b/sourcemod-1.5-dev/scripting/ljstats.sp
index f755835..662a1d5 100644
--- a/sourcemod-1.5-dev/scripting/ljstats.sp
+++ b/sourcemod-1.5-dev/scripting/ljstats.sp
@@ -3561,7 +3561,7 @@ public PrintSyncStats(client) {
}
PrintToConsole( client, strFull );
- if( !g_PlayerStates[client][bSyncStats] || g_PlayerStates[client][nTotalTicks] > 65 )
+ if( !g_PlayerStates[client][bSyncStats] || g_PlayerStates[client][nTotalTicks] > 78 )
return;
Format( strLeft, sizeof( strLeft ), "[ " );
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 ) {