How can you check if a player killed himself (with /kill, gas grenade, molotov, etc)?
Thanks.
lastKill = {} for i = 1, 32 do 	lastKill[i] = 0 end addhook("kill","onKill") onKill = function(killer,victim) 	lastKill[victim] = killer end addhook("join","onJoin") onJoin = function(id) 	lastKill[id] = 0 end selfKill = function(id) 	if lastKill[id] = id then return true else return false end end
if selfKill(id) then 	--// your code here end
addhook('die', 'dieHook') function dieHook(id, source) 	print('Killer id: '..source) 	print('Victim id: '..id) end
addhook('die', 'dieHook') function dieHook(id,killer,victim) if player(id,"killer") == player(id,"victim") then 		msg("This is a test!@C") 	end end
addhook('die','dieHook') function dieHook(killer,victim) 	if killer == victim then 		msg("This is a test!@C") 	end end
addhook('die','dieHook') function dieHook(killer,victim) 	if killer == victim then 		msg("This is a test!@C") 	end end