Postado Setembro 18, 2013 11 anos Autor Bem as mensagens aparecem no ServerLog... eu queria que aparecesse no Default em vermelho para todos os player verem. "Playername - Triple Kill! Stop him" algo do tipo para todos os players...
Postado Setembro 18, 2013 11 anos local storage = { kills = 8003 } local streaks = { [2] = "DOUBLE KILL!", [3] = "TRIPLE KILL!", [5] = "M-M-M-MONSTER KILL!!", [7] = "RAMPAGE!", [9] = "UNSTOPPABLE!", [12] = "HOLY SHIT!", [15] = "GODLIKE!!" } local daysvalue = 1 * 1 * 3 * 60 function onKill(cid, target, damage, flags) if isPlayer(cid) and isPlayer(target) and (bit.band(flags, 1) == 1) then setPlayerStorageValue(cid, storage.kills, getPlayerStorageValue(cid, storage.kills) + 1) setPlayerStorageValue(target, storage.kills, 0) time = os.time() + daysvalue setPlayerStorageValue(cid, 8004, time) for _, pid in ipairs(getPlayersOnline()) do local s = {"matou", "cortou em pedaços", "detonou", "humilhou", "Num Quero Falar Mais Nada Pra Foder"} doBroadcastMessage("PVP", "".. getCreatureName(cid) .." ".. s[math.random(1, #s)] .." ".. getCreatureName(target) ..".") end local k = streaks[getPlayerStorageValue(cid, storage.kills)] if k and getPlayerStorageValue(cid, 8004) - os.time() > 0 then doBroadcastMessage(getCreatureName(cid) .. " - ".. k, MESSAGE_INFO_DESCR) local z = getPlayerStorageValue(target, storage.kills) if z > 2 and getPlayerStorageValue(target, 8004) - os.time() > 0 then doBroadcastMessage(getCreatureName(target) .. " - NEUTRALIZADO", MESSAGE_INFO_DESCR) end end end return true end Tente isso então. 愛"A alma permanece em suas criações" 平(Não dou suporte por mensagem privada.)
Postado Setembro 18, 2013 11 anos Autor Agora funcionou, pode me dizer onde posso trocar a cor da letra pra vermelho? tá aparecendo pra todos, mas tá ficando no serverlog que as coisas passam muito rápido sem que o player tenha tempo de ler o nome direitnho e procurar, se tiver algum meio de colocar no default... eu agradeceria!
Postado Setembro 19, 2013 11 anos Raell, neste caso, coloque os créditos da antiga acc, para não dar problemas. Ot Design: https://discord.gg/VgtVRNmCD7
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.