Postado Outubro 5, 2017 7 anos E aí rapaziada, estou com um script aqui mas eu acho ele muito "ROX", flooda todo dafault com nick dos players Online. Quero que o comando só aparece a quantidade "20:18 1 players online." Estou usando esse script, quem poder ajudar aí, vai ajudar muito kk! function onSay(cid, words, param, channel) if(not checkExhausted(cid, 666, 10)) then return false end local strings, i, position, added, showGamemasters = {""}, 1, 1, false, getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) for _, pid in ipairs(getPlayersOnline()) 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 added = false if((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 end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player" .. (i > 1 and "s" or "") .. " 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 " Sou um homem de gostos simples: dinamite, pólvora..."
Postado Outubro 6, 2017 7 anos Mostrar conteúdo oculto function onSay(cid, words, param, channel) local sum = 0 for i, pid in pairs(getPlayersOnline()) do if (not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then sum = sum + 1 end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, sum.. " players online.") return true end Contato: Email: dwarfer@sapo.pt Discord: Dwarfer#2715
Postado Outubro 6, 2017 7 anos Autor Obrigado mano! você é foda brozito " Sou um homem de gostos simples: dinamite, pólvora..."
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.