Jump to content

RikeBR

Members
  • Posts

    25
  • Joined

Recent Profile Visitors

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

RikeBR's Achievements

Advanced Member

Advanced Member (8/54)

3

Reputation

  1. VENDA - GTA MODIFICADO BRASIL Na compra está incluso: - Todas as versões completas do servidor do MTA (2016, 2017, 2018, 2019, 2020) - Todas as versões são de gamemode Play/freeroam - Projetos INACABADOS do servidor (GTA Modificado Brasil Roleplay e GTA Modificado Brasil PVP) - Pagina no Facebook (2.6k de seguidor) - fb.com/paginagmb - Grupo no Facebook (390 membros) - fb.com/groups/grupogmb - Discord já configurado (900 membros) - discord.gg/aXz8uMQKub Sobre o servidor em questão: É um servidor que já possui uma história no jogo (4 anos ativo), alcançando grandes marcos nesse período. Atualmente se encontra parado desde final de 2020. Possui diversos mods/mapas exclusivos. Observação importante: NÃO será oferecido suporte após a compra (configurações/adaptações de mods, etc..), é importante que o comprador tenha conhecimento de programação lua, ou tenha alguém responsável para tal. PREÇO: R$ 600,00 Interessados favor chamar no Discord: Rike#4195
  2. Não sei se estou correto postar aqui, mas se algum administrador ver alguma sessão mais adequada, peço que mova por favor. Seguinte, estou a procura de um scripter realmente bom para fazer alguns serviços que são um pouco complexos, que envolve data base e outras coisas (são varios mods). Estou disposto a pagar a pessoa, caso alguém possa me ajudar nisso por favor deixe algum meio de contato para que eu possa chamar.
  3. Agora sim, está tudo funcionando certo! Obrigado pela ajuda.
  4. Bom, fiz exatamente como tu mandou, tentei algumas outras coisas e ele continua não funcionando, no debugscript 3 acusa o seguinte erro: Obs: server-side https://i.imgur.com/YaHikhn.png
  5. Blz, eu testei aqui e continua a mesma coisa, ele só aparece para o player, mas mesmo assim, vlw!
  6. Opa, verdade, o ícone só está aparecendo para o player que está digitando, o certo seria pra todos
  7. Agora sim funcionou! Obrigado pela ajuda @MaligNos
  8. O mesmo erro continua sendo acusado, acredito que o problema não seja no playerNotChatting
  9. Sim, eu estava fazendo um teste. Mas mesmo sem o onPlayerJoin ele ainda acusa o mesmo erro.
  10. Olá a todos. Estou com um problema na seguinte questão: ERROR: Server triggered clientside event updateChatList, but event is not added clientside Já li um tópico relacionado a este mesmo problema, porém não entendi muito bem ainda como resolver, alguém que poderia me ajudar nessa parte? clientside local showMyIcon = true local chattingPlayers = {} local drawDistance = 1000 local transicon = false local chatIconFor = {} local screenSizex, screenSizey = guiGetScreenSize() local guix = screenSizex * 0.1 local guiy = screenSizex * 0.1 local globalscale = 1 local globalalpha = .85 gChatting = false function chatCheckPulse() local chatState = isChatBoxInputActive() or isConsoleActive() if chatState ~= gChatting then if chatState then triggerServerEvent("playerChatting", getLocalPlayer()) else triggerServerEvent("playerNotChatting", getLocalPlayer()) end gChatting = chatState end setTimer( chatCheckPulse, 150, 1) end addEventHandler ( "onClientResourceStart", getRootElement(), chatCheckPulse ) addEventHandler ( "onPlayerJoin", getRootElement(), chatCheckPulse ) function showTextIcon() local playerx,playery,playerz = getElementPosition ( getLocalPlayer() ) for player, truth in pairs(chattingPlayers) do if (player == getLocalPlayer()) then if(not showMyIcon) then return end end if(truth) then local chatx, chaty, chatz = getElementPosition( player ) if(isPedInVehicle(player)) then chatz = chatz + .5 end local dist = getDistanceBetweenPoints3D ( playerx, playery, playerz, chatx, chaty, chatz ) if dist < drawDistance then if( isLineOfSightClear(playerx, playery, playerz, chatx, chaty, chatz, true, false, false, false )) then local screenX, screenY = getScreenFromWorldPosition ( chatx, chaty, chatz+1.2 ) local scaled = screenSizex * (1/(2*(dist+5))) *.85 local relx, rely = scaled * globalscale, scaled * globalscale guiSetAlpha(chatIconFor[player], globalalpha) guiSetSize(chatIconFor[player], relx, rely, false) if(screenX and screenY) then guiSetPosition(chatIconFor[player], screenX, screenY, false) guiSetVisible(chatIconFor[player], true) end end end end end end addEventHandler ( "onClientRender", getRootElement(), showTextIcon ) function updateList(newEntry, newStatus) chattingPlayers[newEntry] = newStatus if(not chatIconFor[newEntry]) then chatIconFor[newEntry] = guiCreateStaticImage(0, 0, guix, guiy, "chat.png", false ) end guiSetVisible(chatIconFor[newEntry], false) end addEvent("updateChatList", true ) addEventHandler ( "updateChatList", getRootElement(), updateList ) serverside addEvent("playerChatting", true ) addEvent("playerNotChatting", true ) addEvent("updateChatList", true ) function playerChatting() triggerClientEvent("updateChatList", getRootElement(), source, true) end function playerNotChatting() triggerClientEvent("updateChatList", getRootElement(), source, false) end addEventHandler("playerChatting", getRootElement(), playerChatting) addEventHandler("playerNotChatting", getRootElement(), playerNotChatting) addEventHandler ("onPlayerQuit", getRootElement(), playerNotChatting )
  11. Olá a todos. Estou com um sistema de chat privado e quero colocar ele pra quando a pessoa for mutada pelo painel admin do chat global, ela também seja mutada do chat privado juntamente, como posso fazer isso? function pmCommand (player, command, id, ...) if tonumber(id) and (...) then local pmWords = { ... } local pmMessage = table.concat(pmWords," ") local target = getPlayerFromID(tonumber(id)) if target then local pmm = getElementData (player, "pmm" ) if pmm == true then outputChatBox ( "#C09F96[SERVER]: #ffffffVocê esta Mutado!",player, 255, 0, 0, true) else if getElementData(target,"pmb") == false then if getElementData(player, "AnonAdmin") == true then outputChatBox ("#FFFF00( PM ) #FFFFFFPM Recebida #FF0000Anônimamente#FFFFFF: #CFCFCF" .. pmMessage, target, 255, 165, 0, true) outputChatBox ("#FFFF00( PM ) #FFFFFFPM Enviada #FF0000Anônimamente #FFFFFFpara " .. getPlayerName(target) .. " #FFFFFF(" .. id .. ")", player, 255, 165, 0, true) outputServerLog("[Game_ID_Logs PM Anom] " .. getPlayerName(player):gsub("#%x%x%x%x%x%x","").." (" .. tonumber(getPlayerID(player)) .. ") para " .. getPlayerName(target):gsub("#%x%x%x%x%x%x","").." (" .. tonumber(getPlayerID(target)) .. "): " .. pmMessage.."") for a, b in ipairs(getElementsByType("player")) do local bcc = getAccountName(getPlayerAccount(b)) if target ~= b and player ~= b and isObjectInACLGroup("user."..bcc, aclGetGroup("Dono")) then outputChatBox("#FF0000( Leitor PM Anônima ) #FFFFFFMesangem para " .. getPlayerName(target) .. " #FFFFFF(" .. id .. "): #CFCFCF"..pmMessage, b, 255, 255, 255, true) end end for a, b in ipairs(getElementsByType("player")) do local bcc = getAccountName(getPlayerAccount(b)) if target ~= b and player ~= b and isObjectInACLGroup("user."..bcc, aclGetGroup("Dono")) then outputChatBox("#FF0000( Leitor PM Anônima ) #FFFFFF" .. getPlayerName(player) .. " #CFCFCFpara #FFFFFF" .. getPlayerName(target)..": #CFCFCF"..pmMessage, b, 255, 255, 255, true) end end else outputChatBox ("#FFFF00( PM ) #FFFFFFPM Recebida de #FFFFFF" .. getPlayerName(player) .. " #FFFFFF(" .. tonumber(getPlayerID(player)) .. "): #CFCFCF" .. pmMessage, target, 255, 165, 0, true) outputChatBox ("#FFFF00( PM ) #FFFFFFPM Enviada para #FFFFFF" .. getPlayerName(target) .. " #FFFFFF(" .. tonumber(getPlayerID(target)) .. "): #CFCFCF" .. pmMessage, player, 255, 165, 0, true) outputServerLog ( "[Game_ID_Logs PM] " .. getPlayerName(player):gsub("#%x%x%x%x%x%x","").." (" .. tonumber(getPlayerID(player)) .. ") para " .. getPlayerName(target):gsub("#%x%x%x%x%x%x","").." (" .. tonumber(getPlayerID(target)) .. "): " .. pmMessage.."" ) for a, b in ipairs(getElementsByType("player")) do local bcc = getAccountName(getPlayerAccount(b)) if target ~= b and player ~= b and isObjectInACLGroup("user."..bcc, aclGetGroup("Dono")) then outputChatBox("#FF0000( Leitor PM ) #FFFFFF" .. getPlayerName(player) .. " #FFFFFF("..(getPlayerID(player) or "???")..") #CFCFCFpara #FFFFFF".. getPlayerName(target).." #FFFFFF("..id.."): #CFCFCF"..pmMessage.."", b, 255, 255, 255, true) end end end else outputChatBox ("#ffffffAs mensagens privadas estão #ff0000Desativadas!", player, 255, 255, 255, true) end end else outputChatBox ("#FFFFFFID (" .. id .. ") Invalido.", player, 255, 255, 255, true) end else outputChatBox ("#FFFFFFUse /pm (id) (texto)", player, 255, 255, 255, true) end end addCommandHandler ("pm", pmCommand)
  12. Opa, vi agora que você editou o código, obrigado pela ajuda, funcionou aqui
×
×
  • Create New...