
fegal
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
fegal deu reputação a Rusherzin em (Resolvido)[ERRO] !staminaNão é incomodo, o fórum é para perguntar sobre o que tu tens dúvida..
Arrumei o script que estava mostrando a stamina em minutos, botei para dividir por 60, ou seja, vai mostrar em horas.
function onSay(cid, words, param, channel) local stamina = getPlayerStamina(cid) / 60 if isPlayer(cid) then doPlayerPopupFYI(cid, "Your stamina is "..stamina.." hours.") end return true end -
fegal deu reputação a xWhiteWolf em Talkaction !staminatalkactions\scripts\stamina.lua
local config = { stamina = getPlayerStamina(cid) } function onSay(cid, words, param, channel) if isPlayer(cid) then doPlayerPopupFYI(cid, "Your stamina is "..config.stamina..".") end return true end talkactions.xml
<talkaction words="!stamina;/stamina" event="script" value="stamina.lua"/>