Rhumor
Dutch & Proud
- Joined
- Jul 7, 2007
- Messages
- 451
- Reaction score
- 2
Ok I have a talkaction script and it should be that you need vip (storageID) and enough money before you can do !buybless.
Now I got it to work but the only problem is, when you don't have money but you do have vip it will work. But when you have money and also vip it will work but then it will take money.. So it's like when you HAVE money it takes money, when you DON'T have money it will also work.. Can someone help me with that?
Here is the script:
Now I got it to work but the only problem is, when you don't have money but you do have vip it will work. But when you have money and also vip it will work but then it will take money.. So it's like when you HAVE money it takes money, when you DON'T have money it will also work.. Can someone help me with that?
Here is the script:
Code:
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if getPlayerStorageValue(cid,11551) == TRUE then
doPlayerRemoveMoney(cid, 60000)
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need vip to get blessed!")
end
end
return 1
end