Jump to content

matheu_yu

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

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

matheu_yu's Achievements

Square

Square (6/54)

3

Reputation

  1. Vlw mano me ajudou muito!! estava quebrando a cabeça com algo e era totalmente ao contrario kkkk
  2. Opa, sou novo na programação do MTA e estou com dificuldades de fazer um script. Criei um painel com o guieditor e queria que ele abrisse quando eu passasse no marker, e descobrir que a função do marker fica no server e de abrir o painel no client, pesquisei para entende como ligo um ao outro e descobrir o addEvent, porém não conseguir fazer até agora, fiz de varias maneiras mais estou muito confuso e já fiquei perdido e sem ideias, se alguém poder me ajudar ficarei muito agradecido !! agradeço !! o Primeiro é o lado do Client e o outro é do lado do Serve. addEvent("painelTrafico", true ) local visible = false local screenW, screenH = guiGetScreenSize() function painel() dxDrawLine((screenW * 0.2632) - 1, (screenH * 0.3021) - 1, (screenW * 0.2632) - 1, screenH * 0.7526, tocolor(45, 191, 25, 254), 1, false) dxDrawLine(screenW * 0.7801, (screenH * 0.3021) - 1, (screenW * 0.2632) - 1, (screenH * 0.3021) - 1, tocolor(45, 191, 25, 254), 1, false) dxDrawLine((screenW * 0.2632) - 1, screenH * 0.7526, screenW * 0.7801, screenH * 0.7526, tocolor(45, 191, 25, 254), 1, false) dxDrawLine(screenW * 0.7801, screenH * 0.7526, screenW * 0.7801, (screenH * 0.3021) - 1, tocolor(45, 191, 25, 254), 1, false) dxDrawRectangle(screenW * 0.2632, screenH * 0.3021, screenW * 0.5169, screenH * 0.4505, tocolor(35, 75, 33, 244), false) dxDrawText("Trabalho Ilegal -BVC", screenW * 0.2559, screenH * 0.3021, screenW * 0.7750, screenH * 0.3607, tocolor(96, 248, 88, 254), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Ganho: R$ 580", screenW * 0.4169, screenH * 0.4688, screenW * 0.6110, screenH * 0.5625, tocolor(16, 189, 7, 254), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.4176) - 1, (screenH * 0.5977) - 1, (screenW * 0.4176) - 1, screenH * 0.6641, tocolor(16, 189, 7, 254), 1, false) dxDrawLine(screenW * 0.6125, (screenH * 0.5977) - 1, (screenW * 0.4176) - 1, (screenH * 0.5977) - 1, tocolor(16, 189, 7, 254), 1, false) dxDrawLine((screenW * 0.4176) - 1, screenH * 0.6641, screenW * 0.6125, screenH * 0.6641, tocolor(16, 189, 7, 254), 1, false) dxDrawLine(screenW * 0.6125, screenH * 0.6641, screenW * 0.6125, (screenH * 0.5977) - 1, tocolor(16, 189, 7, 254), 1, false) dxDrawRectangle(screenW * 0.4176, screenH * 0.5977, screenW * 0.1949, screenH * 0.0664, tocolor(107, 0, 0, 254), false) dxDrawText("Pegar Trabalho ", screenW * 0.4169, screenH * 0.5951, screenW * 0.6125, screenH * 0.6641, tocolor(207, 141, 36, 199), 1.00, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Carga de Maconha", screenW * 0.4206, screenH * 0.3867, screenW * 0.6110, screenH * 0.4557, tocolor(107, 0, 0, 254), 2.00, "diploma", "center", "center", false, false, false, false, false) end function abrirPainel() if visible == true then addEventHandler("onClientRender", getRootElement(), painel) end end addEventHandler("painelTrafico" root, painel, abrirPainel) aqui local mrk = createMarker (2493.9443359375,-952.806640625,81.248107910156, "cylinder", 2, 211, 102 ,13) function trafico() outputChatBox("teste!!") visible = true triggerClientEvent("painelTrafico", root) end addEventHandler("onMarkerHit", mrk, trafico) Obrigado!!
  3. mano ele aparece que executou o comando mais no painel "P" ele mostra que estou com a tag Não sei Pq function removeTagBVC ( ) outputChatBox("testen1") local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account namelocal getAccountName getPlayerAccount if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) then -- aclGroupRemoveObject (aclGetGroup("Staff"), "user."..accName) --Removing the admin. outputChatBox("teste 2") end end addEventHandler ( "onPlayerLogin" , root , removeTagBVC ) Botei "teste 1" e "teste 2 " pra ver ele estar executando e foi mais por algum motivo continua na acl Aaa agora deu certo Muito Obrigado serio mesmo @angeluni Minha Host acabou caindo ai fui testa no servido local e acabei esquecendo de botar o mod com admin
  4. function removeTagBVC(thePlay) outputChatBox("Teste 1") aclGroupRemoveObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(thePlay))) outputChatBox("test 2 ") end addEventHandler ( "onPlayerQuit", root, removeTagBVC ) não to conseguindo retirar a tag, ja tentei de varias outras maneiras, tentei tbm quando o jogador loga
  5.  opa  preciso de uma ajuda, comecei a muito pouco tempo a fazer scripts, ja fiz alguns mais agora não estou conseguindo fazer uma;

    to tentando fazer que quando o jogador deslogue ou logue ele perca a tag de Staff, algume me ajuda pfv 


    function loggedOut1()
        aclGroupRemoveObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(source)))
        outputChatBox( "Logado com Sucesso", source )
        
    end
    addEventHandler("onPlayerLogout",getRootElement(),loggedOut1)

    Essa é uma base do que tentei 

    1. Show previous comments  9 more
    2. matheu_yu

      matheu_yu

      function SkinBVC(thePlay)
      		
      		aclGroupAddObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(thePlay)))
      		if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(thePlay)), aclGetGroup ("Staff")) then
      		outputChatBox("Bom Trabalho!!", thePlay)
      		setPedSkin(thePlay, 10)
      		setPedArmor(thePlay, 100)
      		setElementHealth(thePlay, 100)  
      		else
      			outputChatBox("Oque voçê esta fazendo aki?!", thePlay)
      		
      	end
      end
      addEventHandler("onMarkerHit", mkr2, SkinBVC)
      
      function quitPlayer ( quitType )
      		aclGroupRemoveObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(thePlay)))
      end
      addEventHandler ( "onPlayerQuit", root, quitPlayer )

      This

       

    3. Lisandu

      Lisandu

       

      Nerd Gamimg

      i'm using NerdGaming Mods.

      it working corectly in my Server.

      This Works :P

      To change tag

      *Nerd_Gamig_Public.rar > NGChat > server.lua > Search for "[NG]" replace it to Your Tag...

    4. Lisandu

      Lisandu

      Note Nerd_Gaming Mods are RolePlay mods :)

  6. Opa galera preciso de uma ajuda, comecei a muito pouco tempo a fazer scripts, ja fiz alguns mais agora não estou conseguindo fazer uma; to tentando fazer que quando o jogador deslogue ou logue ele perca a tag de Staff, algume me ajuda pfv function loggedOut1() aclGroupRemoveObject (aclGetGroup("Staff"), "user."..getAccountName(getPlayerAccount(source))) outputChatBox( "Logado com Sucesso", source ) end addEventHandler("onPlayerLogout",getRootElement(),loggedOut1) Essa é uma base do que tentei
×
×
  • Create New...