From 03bae80ed253055b8a75d1888c0088c6adc2e947 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 30 Mar 2007 13:35:08 +0000 Subject: [PATCH] Addendum to revision 3434; fixed for other mods, although they're not multilingual, just in-case. --- plugins/dod/stats.sma | 10 +++++----- plugins/tfc/stats.sma | 10 +++++----- plugins/ts/stats.sma | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/dod/stats.sma b/plugins/dod/stats.sma index c2834f60..30e6fa1c 100755 --- a/plugins/dod/stats.sma +++ b/plugins/dod/stats.sma @@ -713,17 +713,17 @@ public client_death(killer,victim,wpnindex,hitplace,TK) if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){ if ( HeadShotKill ){ - new weapon[32], message[128], players[32], pnum + new weapon[32], message[256], players[32], pnum xmod_get_wpnname(wpnindex,weapon,31) get_players(players,pnum,"c") for (new i=0;i get_gametime() ) continue - format( message, 127, "%L",players[i],g_HeadShots[ random_num(0,6) ] ) - replace( message, 127 , "$vn", victim_name ) - replace( message, 127 , "$wn", weapon ) - replace( message, 127 , "$kn", killer_name ) + format( message, sizeof(message)-1, "%L",players[i],g_HeadShots[ random_num(0,6) ] ) + replace( message, sizeof(message)-1, "$vn", victim_name ) + replace( message, sizeof(message)-1, "$wn", weapon ) + replace( message, sizeof(message)-1, "$kn", killer_name ) set_hudmessage(100, 100, 255, -1.0, 0.19, 0, 6.0, 6.0, 0.5, 0.15, -1) ShowSyncHudMsg(players[i], g_center2_sync, "%s", message) } diff --git a/plugins/tfc/stats.sma b/plugins/tfc/stats.sma index 049d27dd..1fb28805 100755 --- a/plugins/tfc/stats.sma +++ b/plugins/tfc/stats.sma @@ -595,12 +595,12 @@ public client_death(killer,victim,wpnindex,hitplace,TK){ if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){ if ( HeadShotKill ){ - new weapon[32], message[128] + new weapon[32], message[256] xmod_get_wpnname(wpnindex,weapon,31) - copy( message, 127, g_HeadShots[ random_num(0,6) ] ) - replace( message, 127 , "$vn", victim_name ) - replace( message, 127 , "$wn", weapon ) - replace( message, 127 , "$kn", killer_name ) + copy( message, sizeof(message)-1, g_HeadShots[ random_num(0,6) ] ) + replace( message, sizeof(message)-1, "$vn", victim_name ) + replace( message, sizeof(message)-1, "$wn", weapon ) + replace( message, sizeof(message)-1, "$kn", killer_name ) set_hudmessage(100, 100, 255, -1.0, 0.19, 0, 6.0, 6.0, 0.5, 0.15, -1) for (new i=1;i<=get_maxplayers();i++){ if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() ) diff --git a/plugins/ts/stats.sma b/plugins/ts/stats.sma index 38c2170a..4c09605b 100755 --- a/plugins/ts/stats.sma +++ b/plugins/ts/stats.sma @@ -383,12 +383,12 @@ public client_death(killer,victim,wpnindex,hitplace,TK){ } else if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){ if ( HeadShotKill ){ - new weapon[32], message[128] + new weapon[32], message[256] xmod_get_wpnname(wpnindex,weapon,31) - copy( message, 127, g_HeadShots[ random_num(0,6) ] ) - replace( message, 127 , "$vn", victim_name ) - replace( message, 127 , "$wn", weapon ) - replace( message, 127 , "$kn", killer_name ) + copy( message, sizeof(message)-1, g_HeadShots[ random_num(0,6) ] ) + replace( message, sizeof(message)-1, "$vn", victim_name ) + replace( message, sizeof(message)-1 , "$wn", weapon ) + replace( message, sizeof(message)-1, "$kn", killer_name ) set_hudmessage(100, 100, 255, -1.0, 0.29, 0, 6.0, 6.0, 0.5, 0.15, -1) for (new i=1;i<=get_maxplayers();i++){ if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() )