Jump to content

DigDim

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by DigDim

  1. Ola galera, estou tentando acelerar o download dos recursos do servidor, estou seguindo este tutorial porem estou tendo 2 problemas, o primeiro é que no tutorial diz que as funções "worker_rlimit_nofile 5000;" e "worker_connections 5000;" tem que estar no diretório de configuração do Nginx("nginx/nginx.conf"), acima da função "gzip on;" porem quando eu ligo o serviço web nginx apresenta o seguinte erro, "[emerg] 4384#5332: "worker_connections" directive is not allowed here in c:\nginx/conf/nginx.conf:33", então eu coloquei essas duas funções no arquivo mta-server1("nginx/sites-enabled/mta-server1") e o erro não aconteceu mais, porem outro erro aconteceu "[error] 5636#1744: *5 "c:\nginx/html/mta_client_firewall_probe/index.html" is not found (3: The system cannot find the path specified), client: 200.***.**.146, server: localhost, request: "GET /mta_client_firewall_probe/ HTTP/1.1", host: "51.**.**.43"". Gostaria de saber onde eu estou errando, estou usando uma VPS windows server 2016. Configuração do arquivo mta-server1 ("nginx/sites-enabled/")
  2. Hello guys, I'm new to Lua programming and I'm having trouble using the triggerClientEvent. What's wrong ? the "TagStaffInvisible" function on the client side is not called. Can someone help me ? Thanks. Server.Lua function onTagID_Teste(thePlayer) triggerClientEvent("onTagStaffInvisible", resourceRoot, thePlayer) outputChatBox ("Comando Funcionando", thePlayer) end addCommandHandler("tagid", onTagID_Teste) Client.Lua local TagAtiva = true; function TagStaffInvisible(thePlayer) outputChatBox ("function TagStaffInvisible Chamada", thePlayer) if (TagAtiva == true) then TagAtiva = false; table.remove(g_StreamedInPlayers, thePlayer) outputChatBox ("Sua tag id foi removida", thePlayer) elseif (TagAtiva == false) then TagAtiva = true; table.insert(g_StreamedInPlayers, thePlayer) outputChatBox ("Sua tag id foi setada", thePlayer) end end addEvent( "onTagStaffInvisible", true) addEventHandler( "onTagStaffInvisible", resourceRoot, TagStaffInvisible)
  3. Hello The_GTA, yours worked perfectly, but this is a system of hunger and thirst, and I would like to invert this verification, the way that just being staff loses hunger and thirst, as I do to invert and put for staff not to lose hunger and thirst.
  4. Hello guys, I'm new to the moon, I come from another plant and I'm used to programming in pawn, moon is very new to me. I would like some help, I am not able to use the "isObjectInACLGroup" function on the client.Lua side, I should use it on server.Lua but I have no idea how to use it. Can anybody help me ? Thanks in advance. Client.Lua function FomeRepeat() if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ("Staff")) then -- This check does not work if getElementData ( localPlayer, "afkdate" ) == true then return end if getElementData ( localPlayer, "Fome:Logado" ) == true then Fome = getElementData ( localPlayer, "AirNew:Fome" ) -1 SetarFome = setElementData ( localPlayer, "AirNew:Fome", Fome ) if Fome <= 0 then setElementData ( localPlayer, "AirNew:Fome", 10 ) setElementHealth ( localPlayer, 0 ) outputChatBox ( "[ Fome ] - Você Morreu de Fome", 255, 255, 255, true ) outputChatBox ( "[ Fome ] - Vá Até uma Lanchonete e Coma Algo, ou Você Vai Morrer Novamente", 255, 255, 255, true ) end if Fome == 5 then outputChatBox ( "[ Fome ] - Você Esta com Fome e Precisa Comer", 255, 255, 255, true ) outputChatBox ( "[ Fome ] - Vá Até uma Lanchonete e Coma Algo, ou Você Vai Morrer de Fome", 255, 255, 255, true ) playSoundFrontEnd ( 45 ) end end end end setTimer(FomeRepeat,FomeTempo,0)
  5. Poderia me dar um exemplo ? sou novo em Lua.
  6. Ola galera, eu tenho um comando que eu quero que só quem é console pode usar, mas a função isPlayerInACL não funciona, como posso exportar ela para ser usado no arquivo client.Lua ? -- server function isPlayerInACL(player, acl) if isElement(player) and getElementType(player) == "player" and aclGetGroup(acl or "") and not isGuestAccount(getPlayerAccount(player)) then local account = getPlayerAccount(player) return isObjectInACLGroup( "user.".. getAccountName(account), aclGetGroup(acl) ) end return false end -- client function TesteCMD(thePlayer) if isPlayerInACL(thePlayer, "Console") then outputChatBox("Acesso concedido") else outputChatBox("Acesso negado") end end addCommandHandler("teste", TesteCMD)
  7. Eu instalei um mas quando fui instala o outro eu desinstalei o antigo, eu sei que dar conflito e nunca deixei mais de 1 anti vírus instalado.
  8. Tenho não, nenhuma modificação, unico programas que eu tenho e o Crome, TeamSpeak, GTA SA e o MTA
  9. Olá galera, alguém me ajude com esse erro. Nunca consegui logar em nenhum servidor no MTA e nem mesmo no editor de mapa na versão 1.5 do MTA, onde eu tento entrar eu tomo kick, eu uso a versão 1.4 para fazer mapa, pois e a unica que não tomo kick. Eu formatei meu PC hoje e instalei todos os drives, meu PC funciona normalmente mas o MTA continua com esse erro, já instalei anti-virus AVG e Avast que eu vi em outro tópico aqui no forum mas continua o erro, já tentei de tudo, e lembrando meu GTA e puro, somente baixei o GTA e instalei o MTA. Imagem do erro: https://imgur.com/a/PpBGg
×
×
  • Create New...