mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Addendum to revision 3434; fixed for other mods, although they're not multilingual, just in-case.
This commit is contained in:
parent
1161b5ee7e
commit
03bae80ed2
@ -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<pnum;i++) {
|
||||
if ( g_Killers[i][0] && g_DeathStats[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)
|
||||
}
|
||||
|
@ -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() )
|
||||
|
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user