falto o 'if' neh gears? ;x
@topic
local item = 8302
function onSay(cid, words, param)
if doPlayerRemoveItem(cid, item, 1) then
doPlayerAddPremiumDays(cid, 30)
doSendMagicEffect(getPlayerPosition(cid), 21)
doPlayerSendTextMessage(cid, 27, "You are premium now!")
else
doPlayerSendTextMessage(cid, 27, "You need atleast one ".. getItemNameById(item).." to buy 30 days of premium!")
end
return true
end
tag:
<talkaction words="xxxx" event="script" value="yyyy.lua"/>