function onLogin(cid)
registerCreatureEvent(cid, "kill_count")
registerCreatureEvent(cid, "death_count")
return true
end
local death = 23984 -- storage
function onDeath(cid, corpse, deathList)
if isPlayer(cid) then
setPlayerStorageValue(cid,death,math.max(1,getPlayerStorageValue(cid,death)+1))
end
return true
end
local kill = 23494 -- storage
function onKill(cid,target,lastHit)
if isPlayer(cid) and isPlayer(target) then
if lastHit then
setPlayerStorageValue(cid,death,math.max(1,getPlayerStorageValue(cid,death)+1))
end
end
return true
end