Simonp1512
DBhispano
- Joined
- Feb 22, 2009
- Messages
- 62
- Reaction score
- 3
hi ppl i have an error with my server, when some player die by other player that means pk action, the player who dies no lose bless no matter how many times i kill that player that player never lose the blessings
i got this code on the forum i use tfs 1.x
oh and that scrip never get the money when i say !bless i mean always is free xd
i got this code on the forum i use tfs 1.x
Lua:
function onSay(cid)
local player = Player(cid)
local totalBlessPrice = getBlessingsCost(player:getLevel()) * 5 * 0.7
if player:getBlessings() == 5 then
player:sendCancelMessage("You already have been blessed!", cid)
elseif player:removeMoney(totalBlessPrice) then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
for b = 1, 8 do
player:addBlessing(b, 1)
end
player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
else
player:sendCancelMessage("You don't have enough money. You need " .. totalBlessPrice .. " to buy bless.", cid)
end
end
oh and that scrip never get the money when i say !bless i mean always is free xd