Ir para conteúdo
  • 0
Otfun

Scripting Online sem aparecer o god

Pergunta

Otfun    0
Otfun

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

4 respostass a esta questão

Recommended Posts

  • 0
Zirun    11
Zirun

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 por Zirun

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Otfun    0
Otfun

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

 

Desktop_15-04-2016_18-20-18-531.png?1460

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Zirun    11
Zirun

Opa, tem sim, mas cria outro tópico para não ficar desorganizado. Aproveita e coloca o script vipsupremmy.lua também. 

 

:peace:

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Otfun    0
Otfun

fmz obrigadao, postei lá já..

Editado por Otfun

Compartilhar este post


Link para o post
Compartilhar em outros sites
Visitante
Este tópico está impedido de receber novos posts.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×