/*
*   http://games.qwerty.ru
*
*	AmxModX
*   Vampire plugin
*    by Shalfey
*
*   CVars
*   amx_vampire_hp - hp add for kill
*   amx_vampire_hp_hs - hp add for kill in head
*   amx_vampire_max_hp - max player hp
*
*   Players gets HP for kills.
*/
#include <amxmodx>
#include <fun>
#include <zombieplague>

#define PLUGIN_VERSION "1.0c"

new nKiller


public plugin_init()
{
   register_plugin("ZP Show Killer", PLUGIN_VERSION, "=)")

   register_event("DeathMsg", "hook_death", "a", "1>0") 	
}

public hook_death()
{	

   // Killer id
   nKiller = read_data(1)
			if(zp_get_user_zombie(nKiller)) 
	{

	}
	else 
	{
	new name[32]
	get_user_name(nKiller, name, 31)
	set_hudmessage(0, 225, 0, 0.05, 0.45, 0, 0.0, 5.0, 1.0, 1.0, -1)
	show_hudmessage(0, "%s killed a zombie...", name)

   // Screen fading
   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
   write_short(1<<10)
   write_short(1<<10)
   write_short(0x0000)
   write_byte(0)
   write_byte(0)
   write_byte(200)
   write_byte(75)
   message_end()
}
   
} 
