Hello
The script is working fine, im getting all the blessings, the the problem is when somone with blessings is dying his corpse aint falling in the ground. And he aint getting any deathlist, how can this be solved? I hope you understand my problem..
People without blessings = No problems, they are showed in the homepage (when dying) and corpse is showed in the ground)
The script is working fine, im getting all the blessings, the the problem is when somone with blessings is dying his corpse aint falling in the ground. And he aint getting any deathlist, how can this be solved? I hope you understand my problem..
People without blessings = No problems, they are showed in the homepage (when dying) and corpse is showed in the ground)
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- by ALLAAAAN:d
if getPlayerStorageValue(cid, 11551) > 0 then
if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid, "You are already blessed!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
else
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doCreatureSay(cid, "Blessed!", TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, "Not VIP player!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end