function onSay(cid, words, param)
local maxStamina = 42 * 60 * 1000
if doPlayerRemoveItem(cid,2160,10) then
doPlayerSetStamina(cid, maxStamina)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.")
else
doPlayerSendCancel(cid, 'You do not have 10cc.')
end
end
não funcionou brotherLUA:function onSay(cid, words, param) cfg.refuel = 42 * 60 * 1000 if doPlayerRemoveItem(cid,2160,10) then doPlayerSetStamina(cid, cfg.refuel) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") else doPlayerSendCancel(cid, 'You do not have 10cc.') end end
- Only English is allowed here. If you want to post in a different language use this forum.
- Accompanying a foreign language post with an English translation is also forbidden.