Postado Julho 9, 2015 9 anos tem que mudar nas source nesse caso, se eu não me engano. [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Julho 9, 2015 9 anos Autor Em 09/07/2015 em 05:19, karlkalvin disse: Vai na pasta data/talkactions/scripts crie um arquivo chamado ons.lua e adicione isso dentro Mostrar conteúdo oculto Mostrar conteúdo oculto function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local i, position = 1, 1 local added = false for _, pid in ipairs(players) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. "" i = i + 1 added = true else added = false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end Agora va no talkactions.xml e adicione essa tag.; Agora digite o comando !on ou /on e veja todos os usuarios online até cm, gm, e god tudo. OBS: coloquei para que apenas usuarios acima do group3 possam utilizar esse comando no caso Senior tutores e superiores para mudar é só mudar o numero em vermelho que tem na tag. Obrigado pela ajuda mas não é isso que eu queria... Eu queria colocar para que um GM e CM consiga ver o GOD invisível Testei esse script mais deu erro... Ajudar os outros sobre o que se sabe não dói pois amanhã quem pode precisar de ajuda é você! Só sei que nada sei. ~ Sócrates
Postado Julho 26, 2015 9 anos if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then é só mudar isso no script, deixar assim... Mostrar conteúdo oculto if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES))) then Editado Julho 26, 2015 9 anos por karlkalvin (veja o histórico de edições) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Assinatura~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.