Clorens
New Member
- Joined
- Oct 5, 2011
- Messages
- 89
- Reaction score
- 0
PHP:
blessingOnlyPremium = true
blessingReductionBase = 15
blessingReductionDecreament = 5
eachBlessReduction = 10
PHP:
function onSay(cid, words, param, channel)
if getPlayerBlessing(cid, 5) == FALSE then
if getPlayerMoney(cid) >= 100000 then
for i = 1,5 do
doPlayerAddBlessing(cid, i)
end
doSendMagicEffect(getCreaturePosition(cid), 39)
doPlayerRemoveMoney(cid, 100000)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
else
doPlayerSendCancel(cid, "Sorry, but you dont have 10cc")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "You have already been blessed.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end
So these are the scripts I'm using and when I'm trying to fix it so the players doesn't lose any levels at all it doesn't work...
So could you please help me and correct the script?