From 58578690ad76e6a147018078e2b0f2758d9741c3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 16 Sep 2004 22:35:12 +0000 Subject: [PATCH] Fixed server_changelevel (fsfod) Added dod deathmsg stock (Pimp_Daddy) --- plugins/include/amxmodx.inc | 2 +- plugins/include/engine_stocks.inc | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index 9699ba1f..a0b62032 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -37,7 +37,7 @@ forward plugin_cfg(); forward plugin_end(); /* Function called to handle changelevel */ -forward server_changelevel(); +forward server_changelevel(map[]); /* Called on log message. */ forward plugin_log(); diff --git a/plugins/include/engine_stocks.inc b/plugins/include/engine_stocks.inc index 22e426aa..f2bd812b 100755 --- a/plugins/include/engine_stocks.inc +++ b/plugins/include/engine_stocks.inc @@ -162,6 +162,19 @@ stock make_deathmsg(killer,victim,headshot,weapon[]) return 1 } +/* Creates a death message. */ +stock dod_make_deathmsg(killer,victim,weaponNUM) +{ + + message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0) + write_byte( killer ) + write_byte( victim ) + write_byte( weaponNUM) + message_end() + + return 1 +} + /* Kills a user without a message. */ stock user_silentkill(index) {