Elexonic
Well-Known Member
- Joined
- Jun 18, 2008
- Messages
- 1,920
- Reaction score
- 59
I search one script..
that what we do is that if a player dies and you drop a list item .. This creates a log .. saying the items lost and the player's name ..
and do not the truth .. but here I leave an idea ..
that what we do is that if a player dies and you drop a list item .. This creates a log .. saying the items lost and the player's name ..
and do not the truth .. but here I leave an idea ..
Code:
local itemlost = {"2160", "3360", "2268"} -- Items checks if drop or no
function onPrepareDeath(cid, killers) --idk what use..
function onDeath(cid, corpse, deathList) --idk what use..
if isInArray(itemlost, getPlayerItem(cid)) == true then --if item drop is on "list" then
doWriteLogFile("./data/logs/Itemlost.log", "Player: ".. getCreatureName(cid).." perdio el item (items que perdio al morir) . Y tenia "..getPlayerBlessing(cid).." bless comprado.")
--creating log and check if player have blessing or no
end
return TRUE
end