Jump to content

#DaNiLiN

Members
  • Posts

    296
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by #DaNiLiN

  1. Geeente estou com um poblema, Quero deixa meu painel GUI Window com suas funções ativada porem invisivel e funcional! Ajudem PFV
  2. Tenho um painel, porém eu queria que ao clicar no botão "Exemplo" cair na team "Exemplo" e nascer na base de "exemplo" ao morrer, quais funcão eu preciso?
  3. #DaNiLiN

    Button Team

    I have a panel, but I wanted to click on the "Example" button to drop the "Example" team and be born on the "example" basis when dying, what function do I need?
  4. no caso DNL eu queria ativar meu Teamsay porque quando eu digito no team say "y" cai direto no say "t" entende?
  5. alguem posso me ajudar com esse erro, estou tentanto add o takemoney pra quando o jogador usar 1 comando EX> /g dai o takemoney nn está ativando.
  6. ---BOPE local bope = createTeam ("[BOPE]Batalhão De Operações Especiais", 0, 0, 0 ) setTeamFriendlyFire ( bope, false ) function conecta () local conta = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. conta, aclGetGroup("BOPE")) then setPlayerTeam ( source, bope ) end end addEventHandler( 'onPlayerLogin', root, conecta ) ---- ROTA local rota = createTeam("[ROTA]Ronda Ostensiva Tobias De Aguiar", 169, 169, 169 ) setTeamFriendlyFire ( rota, false ) function conecta () local conta = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. conta, aclGetGroup("ROTA")) then setPlayerTeam ( source, rota ) end end addEventHandler( 'onPlayerLogin', root, conecta ) ---- mais uma vez obrigado.
  7. Galera, quais funções eu preciso para ativar meu teamsay?
  8. function createAdminTeamOnStart () AdminTeam = createTeam ( "[BOPE]Batalhão De Operações Especiais", 0, 0, 0 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("BOPE")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler ---2 function createAdminTeamOnStart () AdminTeam = createTeam ( "[ROTA]Ronda Ostensiva Tobias De Aguiar", 169, 169, 169 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("ROTA")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler --- 3 function createAdminTeamOnStart () AdminTeam = createTeam ( "[PMERJ]Policia Militar Rio de Janeiro", 0, 187, 255 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("PMERJ")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler ---4 function createAdminTeamOnStart () AdminTeam = createTeam ( "[FT]Força Tatica", 255, 0, 0 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("FT")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler
  9. function createAdminTeamOnStart () AdminTeam = createTeam ( "[BOPE]Batalhão De Operações Especiais", 0, 0, 0 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("BOPE")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler ---2 function createAdminTeamOnStart () AdminTeam = createTeam ( "[ROTA]Ronda Ostensiva Tobias De Aguiar", 169, 169, 169 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("ROTA")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler --- 3 function createAdminTeamOnStart () AdminTeam = createTeam ( "[PMERJ]Policia Militar Rio de Janeiro", 0, 187, 255 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("PMERJ")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler ---4 function createAdminTeamOnStart () AdminTeam = createTeam ( "[FT]Força Tatica", 255, 0, 0 )-- create a new team and name it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("FT")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler ai, eu fiz assim ne add a função addEventHandler("onResourceStart", getRootElement(), setAdminTeam) -- add an event handler Mais ta bugando, todos dessa mesma team só cai na time ft
  10. ss, eu entendo +- to vindo por esse ramo agora, obrigado os 2 ajudo bastante conseguir fzr estou satisfeito <3
  11. Como eu adiciono varias Team Com ACL ? sem bugar
  12. tipo, queria que desse pra da tp pelo marker privado. ai no caso da pra mudar a função de fchar pra de teleport?
  13. como eu ativo meu teamsay para as team? por que quando eu entro na team e digito cai no chat say não no teamsay.
  14. Gente como eu privaria isso para 1 grupo só? addCommandHandler("fogo", function(lp) local x,y,z=getElementPosition(lp) local Rocket=createObject(3790,x,y,z-1.5,0,90,0) setTimer(function() moveObject(Rocket,500, x+math.random(0,5), y+math.random(0,5), z+math.random(20,50), 0, 0, math.random(0,200)) triggerClientEvent(root, "startSilvesterRocket", root, x, y, z) setTimer(function() local xr,yr,zr=getElementPosition(Rocket) createExplosion(xr,yr,zr,9,lp) createExplosion(xr,yr,zr,4,lp) destroyElement(Rocket) end,500,1) end,2000,1) end) MaxRocketPack = 3 RocketPack = 0
  15. Nesta função aqui lord. function gerenciaPainel () if not isDxShowing then addEventHandler ("onClientRender", getRootElement(), drawDX) showCursor (true) isDxShowing = true else removeEventHandler ("onClientRender", getRootElement(), drawDX) showCursor (false) isDxShowing = false end end addEvent ("ativaPainel", true) addEventHandler ("ativaPainel", getRootElement(), gerenciaPainel) addEventHandler ("onClientClick", getRootElement(), function (button, state, absoluteX, absoluteY) if (button == "left") and (state == "up") and isDxShowing then if absoluteX >= 440, 254, 83, 31 and absoluteX <= 650 and absoluteY >= 528 and absoluteY <= 559 then -- Se a coordenada clicada estiver dentro do retângulo "Fechar", então: gerenciaPainel () -- Fecha o painel. end end end) o painel abriu certin como dx, mais o painel e teleport no caso como ficaria esse comando pra teleport? mais dentro do painel do marker.
  16. ajudo bastante agr como eu privaria isso lord usedKey = "n", usedCommand = "hedit",
  17. client: janelaPainel = guiCreateWindow ("crie seu painel GUI e seus elementos") guiSetVisible (janelaPainel, false) addEvent ("ativaPainel", true) addEventHandler ("ativaPainel", getRootElement(), function () guiSetVisible (janelaPainel, true) showCursor (true) end) Se tiver dúvidas quanto a sintaxe de alguma função, leia a Wiki dela. No meu client tá assim. sem ta privado. ai aparece a Dx function draw() base = dxDrawRectangle(422, 221, 353, 360, tocolor(0, 0, 0, 160), false) dxDrawRectangle(422, 187, 353, 34, tocolor(0, 0, 0, 230), false) dxDrawText("Favelas da CMD", 484, 192, 765, 216, tocolor(255, 0, 0, 255), 0.80, "bankgothic", "left", "top", false, false, false, false, false) dxDrawRectangle(440, 254, 83, 31, tocolor(255, 1, 1, 255), false) --- Chapadão dxDrawRectangle(565, 254, 83, 31, tocolor(255, 1, 1, 255), false) --- Salgueiro dxDrawRectangle(677, 254, 83, 31, tocolor(255, 1, 1, 255), false) --- Penha dxDrawRectangle(440, 307, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir1 dxDrawRectangle(565, 307, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir2 dxDrawRectangle(677, 307, 83, 31, tocolor(255, 1, 1, 255), false) --- Alemão dxDrawRectangle(440, 360, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir3 dxDrawRectangle(565, 360, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir4 dxDrawRectangle(678, 360, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir5 dxDrawRectangle(565, 412, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir6 dxDrawRectangle(567, 528, 83, 31, tocolor(255, 1, 1, 255), false) --- Close dxDrawText("Chapadão", 451, 261, 496, 276, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Salgueiro", 580, 262, 629, 278, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Penha", 699, 263, 748, 279, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve1", 462, 314, 511, 330, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve2", 587, 314, 636, 330, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Alemão", 695, 315, 744, 331, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve3", 462, 367, 511, 383, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve4", 590, 368, 639, 384, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve5", 699, 368, 748, 384, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve6", 589, 419, 638, 435, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Fechar", 589, 536, 638, 552, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) showCursor (true) end ---- Botões button = guiCreateButton(440, 254, 83, 31, "Chapadão", false) button2 = guiCreateButton(565, 254, 83, 31, "Salgueiro", false) button3 = guiCreateButton(677, 254, 83, 31, "Penha", false) button4 = guiCreateButton(440, 307, 83, 31, "Abrir1", false) button5 = guiCreateButton(565, 307, 83, 31, "Abrir2", false) button6 = guiCreateButton(677, 307, 83, 31, "Alemão", false) button7 = guiCreateButton(440, 360, 83, 31, "Breve3", false) button8 = guiCreateButton(565, 360, 83, 31, "Breve4", false) button9 = guiCreateButton(678, 360, 83, 31, "Breve5", false) button11 = guiCreateButton(565, 412, 83, 31, "Breve6", false) button10 = guiCreateButton(567, 528, 83, 31, "Close", false) guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button4, false) guiSetVisible(button5, false) guiSetVisible(button6, false) guiSetVisible(button7, false) guiSetVisible(button8, false) guiSetVisible(button9, false) guiSetVisible(button11, false) guiSetVisible(button10, false) local drawingPanel = false; function startDrawing_CMD() if(drawingPanel == false) then addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) drawingPanel = true; showCursor(true) else removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) drawingPanel = false; showCursor(false) end end addEventHandler("onClientMarkerHit", marker, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button4, true) guiSetVisible(button5, true) guiSetVisible(button6, true) guiSetVisible(button7, true) guiSetVisible(button8, true) guiSetVisible(button9, true) guiSetVisible(button11, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button4, 0) guiSetAlpha(button5, 0) guiSetAlpha(button6, 0) guiSetAlpha(button7, 0) guiSetAlpha(button8, 0) guiSetAlpha(button9, 0) guiSetAlpha(button11, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientGUIClick",button10,function() if ( source == button10) then removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button4, false) guiSetVisible(button5, false) guiSetVisible(button6, false) guiSetVisible(button7, false) guiSetVisible(button8, false) guiSetVisible(button9, false) guiSetVisible(button11, false) guiSetVisible(button10, false) showCursor(false) end end ) addEventHandler("onClientGUIClick",button,function() if ( source == button) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2604.05981, -515.63080, 91.06875 ) outputChatBox("Foi para Complexo do chapadao",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button2,function() if ( source == button2) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2257.93848, -82.98331, 26.52718 ) outputChatBox("Foi para vila kenedy na salgueiro",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button3,function() if ( source == button3) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1311.90369, -1971.93005, 51.46875 ) outputChatBox("Foi para o morro da Penha",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button4,function() if ( source == button4) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2036.68323, -1408.72253, 17.16406 ) outputChatBox("FAVELA AQUI1.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button5,function() if ( source == button5) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2037.74121, -1430.70630, 16.99219 ) outputChatBox("FAVELA AQUI2.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button6,function() if ( source == button6) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2473.34692, -900.75824, 115.17656 ) outputChatBox("Foi Pro Morro Do Alemão.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button7,function() if ( source == button7) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2027.36816, -1420.52002, 16.99219 ) outputChatBox("FAVELA3 AQUI.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button8,function() if ( source == button8) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2030.99146, -1433.26086, 17.14842 ) outputChatBox("FAVELA4 AQUI.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button9,function() if ( source == button9) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2009.01660, -1418.11768, 16.99219 ) outputChatBox("FAVELA5 AQUI.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button11,function() if ( source == button11) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1997.70728, -1445.59009, 13.56213 ) outputChatBox("FAVELA6 AQUI.",255,0,0,LocalPlayer) end end ) Client com priv --- BOTÕES button = guiCreateButton(440, 254, 83, 31, "Chapadão", false) button2 = guiCreateButton(565, 254, 83, 31, "Salgueiro", false) button3 = guiCreateButton(677, 254, 83, 31, "Penha", false) button4 = guiCreateButton(440, 307, 83, 31, "Abrir1", false) button5 = guiCreateButton(565, 307, 83, 31, "Abrir2", false) button6 = guiCreateButton(677, 307, 83, 31, "Alemão", false) button7 = guiCreateButton(440, 360, 83, 31, "Breve3", false) button8 = guiCreateButton(565, 360, 83, 31, "Breve4", false) button9 = guiCreateButton(678, 360, 83, 31, "Breve5", false) button11 = guiCreateButton(565, 412, 83, 31, "Breve6", false) button10 = guiCreateButton(567, 528, 83, 31, "Close", false) --- INVISIVEL guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button4, false) guiSetVisible(button5, false) guiSetVisible(button6, false) guiSetVisible(button7, false) guiSetVisible(button8, false) guiSetVisible(button9, false) guiSetVisible(button11, false) guiSetVisible(button10, false) addEvent ("ativaPainel", true) addEventHandler ("ativaPainel", getRootElement(), function () guiSetVisible (button, true) guiSetVisible (button2, true) guiSetVisible (button3, true) guiSetVisible (button4, true) guiSetVisible (button5, true) guiSetVisible (button6, true) guiSetVisible (button7, true) guiSetVisible (button8, true) guiSetVisible (button9, true) guiSetVisible (button10, true) guiSetVisible (button11, true) showCursor (true) end) function draw() base = dxDrawRectangle(422, 221, 353, 360, tocolor(0, 0, 0, 160), false) dxDrawRectangle(422, 187, 353, 34, tocolor(0, 0, 0, 230), false) dxDrawText("Favelas da CMD", 484, 192, 765, 216, tocolor(255, 0, 0, 255), 0.80, "bankgothic", "left", "top", false, false, false, false, false) dxDrawRectangle(440, 254, 83, 31, tocolor(255, 1, 1, 255), false) --- Chapadão dxDrawRectangle(565, 254, 83, 31, tocolor(255, 1, 1, 255), false) --- Salgueiro dxDrawRectangle(677, 254, 83, 31, tocolor(255, 1, 1, 255), false) --- Penha dxDrawRectangle(440, 307, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir1 dxDrawRectangle(565, 307, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir2 dxDrawRectangle(677, 307, 83, 31, tocolor(255, 1, 1, 255), false) --- Alemão dxDrawRectangle(440, 360, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir3 dxDrawRectangle(565, 360, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir4 dxDrawRectangle(678, 360, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir5 dxDrawRectangle(565, 412, 83, 31, tocolor(255, 1, 1, 255), false) --- Abrir6 dxDrawRectangle(567, 528, 83, 31, tocolor(255, 1, 1, 255), false) --- Close dxDrawText("Chapadão", 451, 261, 496, 276, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Salgueiro", 580, 262, 629, 278, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Penha", 699, 263, 748, 279, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve1", 462, 314, 511, 330, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve2", 587, 314, 636, 330, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Alemão", 695, 315, 744, 331, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve3", 462, 367, 511, 383, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve4", 590, 368, 639, 384, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve5", 699, 368, 748, 384, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Breve6", 589, 419, 638, 435, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Fechar", 589, 536, 638, 552, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) showCursor (true) end ---- Botões button = guiCreateButton(440, 254, 83, 31, "Chapadão", false) button2 = guiCreateButton(565, 254, 83, 31, "Salgueiro", false) button3 = guiCreateButton(677, 254, 83, 31, "Penha", false) button4 = guiCreateButton(440, 307, 83, 31, "Abrir1", false) button5 = guiCreateButton(565, 307, 83, 31, "Abrir2", false) button6 = guiCreateButton(677, 307, 83, 31, "Alemão", false) button7 = guiCreateButton(440, 360, 83, 31, "Breve3", false) button8 = guiCreateButton(565, 360, 83, 31, "Breve4", false) button9 = guiCreateButton(678, 360, 83, 31, "Breve5", false) button11 = guiCreateButton(565, 412, 83, 31, "Breve6", false) button10 = guiCreateButton(567, 528, 83, 31, "Close", false) guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button4, false) guiSetVisible(button5, false) guiSetVisible(button6, false) guiSetVisible(button7, false) guiSetVisible(button8, false) guiSetVisible(button9, false) guiSetVisible(button11, false) guiSetVisible(button10, false) local drawingPanel = false; function startDrawing_CMD() if(drawingPanel == false) then addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) drawingPanel = true; showCursor(true) else removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) drawingPanel = false; showCursor(false) end end addEventHandler("onClientMarkerHit", marker, function (p) if p == localPlayer then count = 10 addEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button4, true) guiSetVisible(button5, true) guiSetVisible(button6, true) guiSetVisible(button7, true) guiSetVisible(button8, true) guiSetVisible(button9, true) guiSetVisible(button11, true) guiSetVisible(button10, true) guiSetAlpha(button, 0) guiSetAlpha(button2, 0) guiSetAlpha(button3, 0) guiSetAlpha(button4, 0) guiSetAlpha(button5, 0) guiSetAlpha(button6, 0) guiSetAlpha(button7, 0) guiSetAlpha(button8, 0) guiSetAlpha(button9, 0) guiSetAlpha(button11, 0) guiSetAlpha(button10, 0) showCursor(true) end end ) addEventHandler("onClientGUIClick",button10,function() if ( source == button10) then removeEventHandler("onClientPreRender", getRootElement(), draw); guiSetVisible(button, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button4, false) guiSetVisible(button5, false) guiSetVisible(button6, false) guiSetVisible(button7, false) guiSetVisible(button8, false) guiSetVisible(button9, false) guiSetVisible(button11, false) guiSetVisible(button10, false) showCursor(false) end end ) addEventHandler("onClientGUIClick",button,function() if ( source == button) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2604.05981, -515.63080, 91.06875 ) outputChatBox("Foi para Complexo do chapadao",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button2,function() if ( source == button2) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2257.93848, -82.98331, 26.52718 ) outputChatBox("Foi para vila kenedy na salgueiro",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button3,function() if ( source == button3) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1311.90369, -1971.93005, 51.46875 ) outputChatBox("Foi para o morro da Penha",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button4,function() if ( source == button4) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2036.68323, -1408.72253, 17.16406 ) outputChatBox("FAVELA AQUI1.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button5,function() if ( source == button5) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2037.74121, -1430.70630, 16.99219 ) outputChatBox("FAVELA AQUI2.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button6,function() if ( source == button6) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2473.34692, -900.75824, 115.17656 ) outputChatBox("Foi Pro Morro Do Alemão.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button7,function() if ( source == button7) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2027.36816, -1420.52002, 16.99219 ) outputChatBox("FAVELA3 AQUI.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button8,function() if ( source == button8) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2030.99146, -1433.26086, 17.14842 ) outputChatBox("FAVELA4 AQUI.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button9,function() if ( source == button9) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 2009.01660, -1418.11768, 16.99219 ) outputChatBox("FAVELA5 AQUI.",255,0,0,LocalPlayer) end end ) addEventHandler("onClientGUIClick",button11,function() if ( source == button11) then showCursor(false) removeEventHandler("onClientPreRender", getRootElement(), draw); setElementPosition ( getLocalPlayer(), 1997.70728, -1445.59009, 13.56213 ) outputChatBox("FAVELA6 AQUI.",255,0,0,LocalPlayer) end end ) No caso eu querria privar mais a dx aparecer.
  18. Lord Ajudo Bastante, mais no caso seria 1 painel com botões e drawdx, eu usaria essas mesma funções?
  19. Gente Gostaria de saber como adiciono priv acl por marker Ex: O player entra no marker mais não conseguir abrir o painel que está no marker
×
×
  • Create New...