#include <sdktools_entinput>
#include <sdktools_functions>
public OnPluginStart() HookEvent("player_hurt", Event_PlayerHurt);
public Event_PlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)
{
if (GetEventInt(event, "health") < 1)
{
decl weapon;
for (new client = GetClientOfUserId(GetEventInt(event, "userid")), i; i < 4; ++i)
{
if ((weapon = GetPlayerWeaponSlot(client, i)) != -1) AcceptEntityInput(weapon, "Kill");
}
}
}