Jump to content

OrrutoSCR

Members
  • Posts

    26
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

OrrutoSCR's Achievements

Advanced Member

Advanced Member (8/54)

2

Reputation

  1. my reservation already arrived a few days ago but until today I wait for the ccw reply, because my top list bugged when i click on the link that was sent in my email the top list goes to another IP that is not mine
  2. Hello my name is amauri, good today 3:00 AM I received a message in my email from a bot that his email was [email protected], in that message that the bot sent had the following information. For the attention of '[email protected]' MTA Server Browser waiting list, Notification that your reserved location is ready. alright then, when I click on the following link that is below I will be redirected to a page in the top list, where it says the server's address ta another address that is not mine and lower where the server's name is not at all nothing, and further down there is a message that says The server could not be found in the list of primary servers. and below you have the option Try another server but I am not redirected anywhere, the server address in the server address is not my address, I waited a long time to get the top list and I don't want to miss this chance and having to do everything again and wait again all this time, I would like to know how to solve this problem, my original server address is 51.81.105.220:22173, and the name of my server is PT-BR [BCB] | Brasil Cidade Bella ~ RolePlay ~ [BETA]. I'm thinking that this server address is there from my old hosting that I was at the beginning, the server address was 198.50.217.190:22013, but for reasons of the host itself it had to change its address and now the address that is currently it is wrong, please help me do not want to wait for everything again.
  3. Já tentei com essa função ai Tommy, e sobre a bandeira só n tava aparecendo porque eu tava no servidor local rs Vlw mano
  4. O que devo fazer para que apareça o country de todos os jogadores do servidor e tbm que faça eu tirar os nomes colorido do meu scoreboard ?
  5. fiz esse painel aqui de modload para ativar ou desativar os mods só que não to conseguindo conectar as função nos botões, alguem poderia min ajudar ?
  6. Não deu certo aff, dando erro no debugscript e a primeira opção sumiu, e a lista de mods que fica no file tbm não ta aparecendo Conversar em @+Mesa
  7. local sx, sy = guiGetScreenSize() local queue = {} local modQueue = {} local progress = 0 local downloadSize = 0 local modsSize = 0 local scriptVersion = 1.1 local canShowThe:OingGUI = false local window, language, guiColorR, guiColorG, guiColorB local gridClicked = 0 local gridCache = 1 local gridRows = 10 addEvent(resname .. ":startDownload", true) addEventHandler(resname .. ":startDownload", localPlayer, function(table, size, lang, colorR, colorG, colorB) queue = table language = lang guiColorR, guiColorG, guiColorB = colorR, colorG, colorB for index = 1, #queue do local data = queue[index] if fileExists(data[1]) then local cf = fileOpen(data[1]) local cfSize = fileGetSize(cf) if cfSize ~= data[3] then fileDelete(cf) else size = size - cfSize fileClose(cf) end end end modsSize = size if modsSize > 0 then window = "request" showCursor(true) downloadButton = guiCreateButton((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, "", false) guiSetAlpha(downloadButton, 0) cancelButton = guiCreateButton((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, "", false) guiSetAlpha(cancelButton, 0) addEventHandler("onClientGUIClick", root, function() if source == downloadButton then showCursor(false) destroyElement(downloadButton) destroyElement(cancelButton) window = nil download() elseif source == cancelButton then for index = 1, #queue do local data = queue[index] if not fileExists(data[1]) then queue[index] = nil end end showCursor(false) destroyElement(downloadButton) destroyElement(cancelButton) window = nil download() end end ) else download() end end ) function download() if #queue >= 1 then downloadFile(queue[#queue][1]) else queue = {} modsSize = 0 downloadSize = 0 progress = 0 canShowThe:OingGUI = true end end function calculateW(w, progress) if w and progress then local w = w-2 local width = ((w*progress)/100) return width end return false end local lastUpdate = 0 local lastName = "" function updateDownloadSize(size) if lastName == queue[#queue] then downloadSize = (downloadSize-lastUpdate) + size else downloadSize = downloadSize + size end lastName = queue[#queue] lastUpdate = size end addEventHandler("onClientRender", root, function() if #queue ~= 0 then if window == "request" then dxDrawRectangle((520/1366)*sx, (267/768)*sy, (307/1366)*sx, (125/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((520/1366)*sx, (267/768)*sy, (307/1366)*sx, (23/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawText("AFK Mod Downloader v" .. scriptVersion, (520/1366)*sx, (267/768)*sy, (827/1366)*sx, (290/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(translations[language].request_firstText .. "\n" .. translations[language].request_secondText .. ": " .. sizeFormat(modsSize), (520/1366)*sx, (295/768)*sy, (827/1366)*sx, (338/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, true, true, false, false) if getKeyState("mouse1") and isCursorHover((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 50), true) dxDrawText(translations[language].request_downloadButton, (534/1366)*sx, (347/768)*sy, (643/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) elseif isCursorHover((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 100), true) dxDrawText(translations[language].request_downloadButton, (534/1366)*sx, (347/768)*sy, (643/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 200), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 150), true) dxDrawText(translations[language].request_downloadButton, (534/1366)*sx, (347/768)*sy, (643/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if getKeyState("mouse1") and isCursorHover((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 50), true) dxDrawText(translations[language].request_cancelButton, (707/1366)*sx, (347/768)*sy, (816/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) elseif isCursorHover((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 100), true) dxDrawText(translations[language].request_cancelButton, (707/1366)*sx, (347/768)*sy, (816/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 200), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 150), true) dxDrawText(translations[language].request_cancelButton, (707/1366)*sx, (347/768)*sy, (816/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end else if fileExists(queue[#queue][1]) then openedFile = fileOpen(queue[#queue][1]) if openedFile then local fileSize = fileGetSize(openedFile) fileClose(openedFile) updateDownloadSize(fileSize) end end dxDrawRectangle((413/1366)*sx, (599/768)*sy, (548/1366)*sx, (118/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((413/1366)*sx, (599/768)*sy, (548/1366)*sx, (23/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawText("AFK Mod Downloader v" .. scriptVersion, (412/1366)*sx, (599/768)*sy, (961/1366)*sx, (622/768)*sy, tocolor(255, 255, 255, 254), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(translations[language].firstText .. "\n" .. translations[language].secondText .. ": " .. queue[#queue][1]:gsub("files/", ""), (412/1366)*sx, (622/768)*sy, (961/1366)*sx, (666/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) local x, y, w, h = (421/1366)*sx, (673/768)*sy, (532/1366)*sx, (34/768)*sy progress = ((downloadSize*100)/modsSize) local width = calculateW(w, progress) dxDrawRectangle(x, y, w, h, tocolor(0, 0, 0, 200), true) dxDrawRectangle(x+1, y+1, w-2, h-2, tocolor(guiColorR, guiColorG, guiColorB, 50), true) dxDrawRectangle(x+1, y+1, width, h-2, tocolor(guiColorR, guiColorG, guiColorB, 150), true) dxDrawText(sizeFormat(downloadSize) .. "/" .. sizeFormat(modsSize) .. " (" .. math.floor(progress) .. "%)", x, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end end if window == "select" then dxDrawRectangle((431/1366)*sx, (164/768)*sy, (502/1366)*sx, (366/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((431/1366)*sx, (164/768)*sy, (502/1366)*sx, (23/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((573/1366)*sx, (196/768)*sy, (351/1366)*sx, (276.5/768)*sy, tocolor(0, 0, 0, 176), true) dxDrawText("AFK Mod Downloader v1.1", (430/1366)*sx, (162/768)*sy, (933/1366)*sx, (187/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) if isCursorHover((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_activateSelected, (439/1366)*sx, (197/768)*sy, (552/1366)*sx, (233/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_activateSelected, (439/1366)*sx, (197/768)*sy, (552/1366)*sx, (233/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_desactiveSelected, (439/1366)*sx, (243/768)*sy, (552/1366)*sx, (279/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_desactiveSelected, (439/1366)*sx, (243/768)*sy, (552/1366)*sx, (279/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_activeAll, (439/1366)*sx, (291/768)*sy, (552/1366)*sx, (327/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_activeAll, (439/1366)*sx, (291/768)*sy, (552/1366)*sx, (327/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_disAll, (439/1366)*sx, (337/768)*sy, (552/1366)*sx, (373/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_disAll, (439/1366)*sx, (337/768)*sy, (552/1366)*sx, (373/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy) then dxDrawRectangle((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_close, (594/1366)*sx, (483/768)*sy, (769/1366)*sx, (519/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_close, (594/1366)*sx, (483/768)*sy, (769/1366)*sx, (519/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end y = (197/768)*sy for index = gridCache, (gridCache+gridRows) do local mods = modQueue[index] if index <= #modQueue then x, y, w, h = (574/1366)*sx, y, (349/1366)*sx, (24/768)*sy if gridClicked == index then dxDrawRectangle(x, y, w, h, tocolor(guiColorR, guiColorG, guiColorB, 255), true) if isVehicle(tonumber(mods[2])) then dxDrawText(mods[3] .. " (" .. getVehicleNameFromModel(tonumber(mods[2])) .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) elseif isSkin(tonumber(mods[2])) then dxDrawText(mods[3] .. " (Skin " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) else dxDrawText(mods[3] .. " (Object " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) end elseif isCursorHover(x, y, w, h) and gridClicked ~= index then dxDrawRectangle(x, y, w, h, tocolor(guiColorR, guiColorG, guiColorB, 100), true) if isVehicle(tonumber(mods[2])) then dxDrawText(mods[3] .. " (" .. getVehicleNameFromModel(tonumber(mods[2])) .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 155), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) elseif isSkin(tonumber(mods[2])) then dxDrawText(mods[3] .. " (Skin " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 155), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) else dxDrawText(mods[3] .. " (Object " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 155), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) end if getKeyState("mouse1") then gridClicked = index end else dxDrawRectangle(x, y, w, h, tocolor(guiColorR, guiColorG, guiColorB, 50), true) if isVehicle(tonumber(mods[2])) then dxDrawText(mods[3] .. " (" .. getVehicleNameFromModel(tonumber(mods[2])) .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) elseif isSkin(tonumber(mods[2])) then dxDrawText(mods[3] .. " (Skin " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) else dxDrawText(mods[3] .. " (Object " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) end end y = y + (25/768)*sy end end end end ) addEventHandler("onClientFileDownloadComplete", root, function(file) if duplicates(queue[#queue][2], modQueue) then table.insert(modQueue, {queue[#queue][1], queue[#queue][2], queue[#queue][4], false}) end table.remove(queue, #queue) download() end ) addCommandHandler("mods", function() if canShowThe:OingGUI then if window ~= "select" then window = "select" gui_closeButton = guiCreateButton((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy, "", false) guiSetAlpha(gui_closeButton, 0) gui_activeSelected = guiCreateButton((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy, "", false) guiSetAlpha(gui_activeSelected, 0) gui_desactiveSelected = guiCreateButton((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy, "", false) guiSetAlpha(gui_desactiveSelected, 0) gui_activeAll = guiCreateButton((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy, "", false) guiSetAlpha(gui_activeAll, 0) gui_desactiveAll = guiCreateButton((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy, "", false) guiSetAlpha(gui_desactiveAll, 0) showCursor(true) addEventHandler("onClientGUIClick", root, function() if source == gui_activeSelected then if gridClicked > 0 then if modQueue[gridClicked][4] == false then local filePath = modQueue[gridClicked][1]:gsub(".txd", ""):gsub(".dff", "") local model = modQueue[gridClicked][2] if fileExists(filePath .. ".txd") then modQueue[gridClicked][4] = true local txd = engineLoadTXD(filePath .. ".txd") engineImportTXD(txd, model) end if fileExists(filePath .. ".dff") then modQueue[gridClicked][4] = true local dff = engineLoadDFF(filePath .. ".dff") engineReplaceModel(dff, model) end end end elseif source == gui_desactiveSelected then if gridClicked > 0 then if modQueue[gridClicked][4] == true then local model = modQueue[gridClicked][2] modQueue[gridClicked][4] = false engineRestoreModel(model) end end elseif source == gui_activeAll then for _, data in ipairs(modQueue) do if data[4] == false then local filePath = data[1]:gsub(".txd", ""):gsub(".dff", "") local model = data[2] if fileExists(filePath .. ".txd") then data[4] = true local txd = engineLoadTXD(filePath .. ".txd") engineImportTXD(txd, model) end if fileExists(filePath .. ".dff") then data[4] = true local dff = engineLoadDFF(filePath .. ".dff") engineReplaceModel(dff, model) end end end elseif source == gui_desactiveAll then for _, data in ipairs(modQueue) do if data[4] == true then data[4] = false engineRestoreModel(data[2]) end end elseif source == gui_closeButton then destroyElement(gui_closeButton) destroyElement(gui_activeSelected) destroyElement(gui_desactiveSelected) destroyElement(gui_activeAll) destroyElement(gui_desactiveAll) window = nil gridClicked = 0 gridCache = 1 showCursor(false) end end ) end end end ) bindKey( "mouse_wheel_up", "down", function () if #modQueue >= gridRows + 1 then gridCache = math.max(gridCache - 1, 1) end end ) bindKey( "mouse_wheel_down", "down", function () if #modQueue >= gridRows + 1 then gridCache = math.min(gridCache + 1, #modQueue-gridRows) end end ) Esse é o painel de ligar ou desligar mods, conhecido como modloader, o meu painel ao digitar o comando /mods era pra ele abrir só que n ta abrindo e já tou a 2 horas tentando achar o erro do porque não ta abrindo digitando o seguinte comando que é /mods ... alguem com mais experiencia poderia me da uma ajuda ?
  8. Nicee! Deu certooo, se eu colocar..removehex tbm no global e anonimo ele funciona tbm ?
  9. Testei aqui, não deu certo n tbm -- Config do Chat Local function removeHex(s) if type(s) == "string" then while(string.find(s, "#%x%x%x%x%x%x")) do s = string.gsub(s, "#%x%x%x%x%x%x","") end end return s end addEventHandler('onPlayerChangeNick', root, function(old, new) local noHex = removeHex(new) if noHex ~= new then cancelEvent() end end) addEventHandler('onPlayerJoin', root, function() local pName = getPlayerName(source) local newNick = removeHex(pName) if newNick ~= pName then setPlayerName(source, newNick) end end) addEventHandler("onPlayerChat", root, function(message, messageType) if message and messageType == 0 then cancelEvent() outputChatBox(removeHex..(getPlayerName(source))..": #FFFFFF"..removeHex..(message), root, 255, 255, 255, true ) end end) addEventHandler("onPlayerChat", root, function(tresc, msgtype) if (msgtype == 0) then cancelEvent() local x,y,z = getElementPosition(source) for key, gracze in ipairs(getElementsByType("player")) do local x2,y2,z2 = getElementPosition(gracze) if getElementData (source, "ChatLocal:Delay", true) then outputChatBox ( MensagemFalandoRapidoDemaisLocal, source, 255, 255, 255, true ) return end if ( getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 ) < DistanciaDoChatLocal ) then local int = getElementInterior ( source ) local dim = getElementDimension ( source ) local int2 = getElementInterior ( gracze ) local dim2 = getElementDimension ( gracze ) if ( int == int2 and dim == dim2 ) then conta = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("* #FF7F00("..hours..":"..minutes..":"..second..") #FF7F00- #ffffff"..getPlayerName(source).. "("..getElementData(source, "ID")..")#FF7F00 - #FF7F00 "..tresc, gracze, 255, 255, 255, true) esse ai é o meu chat
  10. function removeHex(s) if type(s) == "string" then while(string.find(s, "#%x%x%x%x%x%x")) do s = string.gsub(s, "#%x%x%x%x%x%x","") end end return s end addEventHandler('onPlayerChangeNick', root, function(old, new) local noHex = removeHex(new) if noHex ~= new then cancelEvent() end end) addEventHandler('onPlayerJoin', root, function() local pName = getPlayerName(source) local newNick = removeHex(pName) if newNick ~= pName then setPlayerName(source, newNick) end end) Essas funções eu usei para bloquear os codigos de cores Hex do nome dos players no chat, Só que eu não tou conseguindo bloquear as cores das binds dos players e tirar aquele monte de letra colorida horrível do chat usando essas mesma função, alguem pode me ajudar ?
  11. Já consegui ^^, mais obrigado todos vocês por me ajudar
  12. Não gostei do seu argumento, Mais valeu vou estudar mais sobre isso aí
  13. Eu não sei fazer isso, se você poder me ajuda dando um exemplo eu agradeceria, sou iniciante em script Lua DNL.
×
×
  • Create New...