PHP Code:
#include <amxmodx>
#include <fun>
new Killer
public plugin_init()
{
register_event("DeathMsg", "hook_death", "a", "1>0")
}
public hook_death()
{
Killer = read_data(1)
if((read_data(3) == 1) && (read_data(5) == 0))
{
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, Killer)
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()
return PLUGIN_HANDLED
}
else
{
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
Blue Screen.
** Now works, i tested **
__________________