@Atualizei o script
vip.lua
function onSay(cid, words, param, channel)
local storage = 13540
local money = 10000
if getPlayerStorageValue(cid, storage) < 1 and getPlayerMoney(cid) >= money then
setPlayerStorageValue(cid, storage, 1)
doPlayerRemoveMoney(cid, money)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você comprou VIP.")
else
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return TRUE
end
end
talkactions.xml
<talkaction words="!buyvip" event="script" value="vip.lua"/>