Teshan
New Member
- Joined
- Nov 10, 2010
- Messages
- 51
- Reaction score
- 0
Today I was surfing the internet and found a type of blessings by levers and decided to put but I can use it whenever you want and do not tell me if I have the blessings or not.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local money = 50000
if item.actionid == 12346 then
if doPlayerRemoveMoney(cid, money) == TRUE then
for i = 1, 5 do
if getPlayerBlessing(cid) == i then
doPlayerAddBlessings(cid, i)
break
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Tienes las Blessings puestas")
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "No tienes suficiente dinero para comprar las Blessings")
end
end
return TRUE
end
Last edited: