Otfun 0 #1 Postado 15 Abril, 2016 fala galera boa noite, aparece o god no !online gostaria q não aparecesse só isso --((By Skyligh baiak-sky))-- local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) } function onSay(cid, words, param, channel) local players = getPlayersOnline() local strings = {""} local sorc,druid,paladin,knight,rook = 0,0,0,0,0 local i, position = 1, 1 local added = false for _, pid in ipairs(players) do -- Implementacion por Xafterin. if isSorcerer(pid) then sorc = sorc + 1 elseif isDruid(pid) then druid = druid + 1 elseif isPaladin(pid) then paladin = paladin + 1 elseif isKnight(pid) then knight = knight + 1 elseif isRookie(pid) then rook = rook + 1 end --- 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) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else added = false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, (i - 1) .. " Online no Ot Fun Server:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. ". ".. sorc .." sorcerer, ".. druid .." druid, ".. paladin .." paladin, ".. knight .." knight jogando atualmente!" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, str) end return true end Compartilhar este post Link para o post Compartilhar em outros sites
0 Zirun 11 #2 Postado 15 Abril, 2016 (editado) No seu config.lua procure por displayGamemastersWithOnlineCommand = true Mude para displayGamemastersWithOnlineCommand = false Ou simplesmente altere, no script, de local config = { showGamemasters = getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) } Para local config = { showGamemasters = false } Editado 15 Abril, 2016 por Zirun 1 Otfun reagiu a isto Compartilhar este post Link para o post Compartilhar em outros sites
0 Otfun 0 #3 Postado 15 Abril, 2016 pow muito obrigado segunda vez q tu me ajuda rep++, teria como tu me ajudar nesse script tem um tile no meu ot q se o cara não consegue passar fica dando esse erro no distro Compartilhar este post Link para o post Compartilhar em outros sites
0 Zirun 11 #4 Postado 15 Abril, 2016 Opa, tem sim, mas cria outro tópico para não ficar desorganizado. Aproveita e coloca o script vipsupremmy.lua também. Compartilhar este post Link para o post Compartilhar em outros sites
0 Otfun 0 #5 Postado 16 Abril, 2016 (editado) fmz obrigadao, postei lá já.. Editado 16 Abril, 2016 por Otfun Compartilhar este post Link para o post Compartilhar em outros sites
fala galera boa noite, aparece o god no !online gostaria q não aparecesse só isso
--((By Skyligh baiak-sky))--
Compartilhar este post
Link para o post
Compartilhar em outros sites