Andre Caraglio
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
Andre Caraglio deu reputação a xWhiteWolf em Talkaction / !serverinfoO comando que cria essa janelinha é esse daqui:
doPlayerPopupFYI(cid, message)
aí é só fazer
local msg = [[
Server Info
|---------- Rates ------------|
escrever tudo que vc quiser
]]
doPlayerPopupFYI(cid, msg)
que vai soltar a msg. Isso dentro do script da talkactions.
-
Andre Caraglio deu reputação a Gustavo Ntos em Exaust em scriptlocal 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, 18, "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
-
Andre Caraglio deu reputação a xWhiteWolf em Exaust em scriptvai em data/lib/constant.lua e dá ctrl f em "MESSAGE_STATUS_CONSOLE_ORANGE"
se não achar nada vc já tem sua resposta, esse tipo de mensagem não existe, aí vc dá ctr f em MESSAGE e vai achar algo parecido com isso aqui:
MESSAGE_FIRST = 18
MESSAGE_STATUS_CONSOLE_RED = MESSAGE_FIRST
MESSAGE_EVENT_ORANGE = 19
MESSAGE_STATUS_CONSOLE_ORANGE = 20
MESSAGE_STATUS_WARNING = 21
MESSAGE_EVENT_ADVANCE = 22
MESSAGE_EVENT_DEFAULT = 23
MESSAGE_STATUS_DEFAULT = 24
MESSAGE_INFO_DESCR = 25
MESSAGE_STATUS_SMALL = 26
MESSAGE_STATUS_CONSOLE_BLUE = 27
MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_BLUE
escolha uma "cor" e substitua, vc pode colocar ou o nome OU o numero.
-
Andre Caraglio deu reputação a Hugo Patriota em Exaust em scriptEstou deduzindo que sua tfs seja 1.x + então tente isto no lugar de "doPlayerSendTextMessage"
-
Andre Caraglio deu reputação a DukeeH em (Resolvido)Talkaction sai no defaultfunction onSay(cid, words, param, channel) local thisball = getPlayerSlotItem(cid, 8) if param ~= "" then return false end if words == "!revert" then if getItemAttribute(thisball.uid, "ehditto") then doItemSetAttribute(thisball.uid, "poke", "Ditto") doItemSetAttribute(thisball.uid, "ehditto", 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Puxe o ditto para terminar a reversão do ditto.') elseif getItemAttribute(thisball.uid, "ehshinyditto") then doItemSetAttribute(thisball.uid, "poke", "Shiny Ditto") doItemSetAttribute(thisball.uid, "ehshinyditto", 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Puxe o Shiny Ditto para terminar a reversão do Shiny Ditto.') else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Você não está usando um Ditto ou Shiny Ditto.') end end return true end Só adicionar o return true antes do ultimo end