-
-
Exaust em script
up
-
-
Exaust em script
Eu achei uma parte assim igual voce colocou. estranho que antes a mensagem pegava com esse script local config = { segundos = 5, lerIP = "yes" } config.lerIP = getBooleanFromString(config.lerIP) local m_lastLogin, m_lastIP = 0, 0 function onLogout(cid) doPlayerSendTextMessage(cid, 20, "Por favor espere 5 segundos para usar a função Logout.") local timeNow, playerIP = os.time(), getPlayerIp(cid) if(m_lastLogin + config.segundos >= timeNow and (config.lerIP == FALSE or m_lastIP == playerIP)) then return false end m_lastIP = playerIP m_lastLogin = timeNow return true end Vou testar @Gustavo Ntos mesma coisa, não desloga mas tbm não manda a mensagem
-
-
Exaust em script
Não é 1.x, obrigador por está tentando ajudar @DukeeH, @xWhiteWolf, @Vodkart, @Sekk
-
-
Exaust em script
Esse scripting ta funcionando normal mais não manda a mensagem para o player local config = { storage = 23567, tempo = 5, lerIP = "yes" } config.lerIP = getBooleanFromString(config.lerIP) local m_lastLogin, m_lastIP = 0, 0 function onLogout(cid) if exhaustion.check(cid, config.storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, config.storage) .. " segundos para usar esse comando novamente.") return true end local timeNow, playerIP = os.time(), getPlayerIp(cid) if(m_lastLogin + config.tempo >= timeNow and (config.lerIP == FALSE or m_lastIP == playerIP)) then return false end m_lastIP = playerIP m_lastLogin = timeNow exhaustion.set(cid, config.storage, config.tempo*60) return true end
-
[ERRO/BUG] Capacidade Poketibia
Isso acontece porque você deve tá usando um char com acess 5 ou 6, tente com um char com acess 1 creio que irar contar normal
-
(Resolvido)Talkaction sai no default
Tu é foda Poderia dizer porque esse script não tá mandando a mensagem ao tentar deslogar? local config = { storage = 23567, tempo = 5, lerIP = "yes" } config.lerIP = getBooleanFromString(config.lerIP) local m_lastLogin, m_lastIP = 0, 0 function onLogout(cid) if exhaustion.check(cid, config.storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, config.storage) .. " segundos para usar esse comando novamente.") return true end local timeNow, playerIP = os.time(), getPlayerIp(cid) if(m_lastLogin + config.tempo >= timeNow and (config.lerIP == FALSE or m_lastIP == playerIP)) then return false end m_lastIP = playerIP m_lastLogin = timeNow exhaustion.set(cid, config.storage, config.tempo*60) return true end
-
-
(Resolvido)Talkaction sai no default
toda vez que uso esse comando ele aparece no default, queria que não aparecesse essa tal talkaction no default script no xml tá assim <talkaction words="!revert" case-sensitive="no" event ="script" value ="dittorevert.lua"/> o script funciona normal