Jump to content

JPzin

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by JPzin

  1. @Lord Henryum dia eu quero aprender a fazer uns script brabo também
  2. @Lord Henry cara te amo namoral vei.
  3. e outra pergunta como eu coloco acl nesse painel assim ?
  4. então mn fiz o de cegui só que eu n sei como posso fazer para givar uma arma e um carro tem 5 botão eu sei fazer sistema de 3 botão só que fazer o de spawnar um carr em um local e givar arm eu n sei, vc poderiar me mostrar como deve colocar no client e server oq eu fiz client: janela = guiCreateWindow(794, 342, 292, 429, "Arsenal", false) guiWindowSetSizable(janela, false) guiSetVisible(janela, false) button1 = guiCreateButton(0.04, 0.09, 0.38, 0.23, "M4", true, janela) guiSetVisible(button1, false) button2 = guiCreateButton(0.55, 0.09, 0.38, 0.23, "Glock", true, janela) guiSetVisible(button2, false) button3 = guiCreateButton(0.04, 0.39, 0.38, 0.23, "Veiculo", true, janela) guiSetVisible(button3, false) button4 = guiCreateButton(0.55, 0.39, 0.38, 0.23, "Skin 1", true, janela) guiSetVisible(button4, false) button5 = guiCreateButton(0.04, 0.67, 0.38, 0.23, "Skin 2", true, janela) guiSetVisible(button5, false) --Painel ^ local visible = false addCommandHandler("painel", function() if visible == false then guiSetVisible(janela, true) guiSetVisible(button1, true) guiSetVisible(button2, true) guiSetVisible(button3, true) guiSetVisible(button4, true) guiSetVisible(button5, true) visible = true showCursor(true) else guiSetVisible(janela, false) guiSetVisible(button1, false) guiSetVisible(button2, false) guiSetVisible(button3, false) guiSetVisible(button4, false) guiSetVisible(button5, false) visible = false showCursor(false) end end) addEventHandler("onClientGUIClick", button1, function(tecla) if tecla == "left" then triggerServerEvent("Arma1", localplayer) end end) server: addEvent("Arma1", true) addEventHandler("Arma1", root, function() giveWepon(source, 31, 200) end)
  5. então to criando um painel dx de arsenal corp e fac e queria pedir ajuda para givar uma arma e um carro obs: se alguem me manda o script arrumado agradeço Client: local screenW, screenH = guiGetScreenSize() painel = false function paineldx () dxDrawRectangle(screenW * 0.2484, screenH * 0.3154, screenW * 0.5547, screenH * 0.4707, tocolor(75, 75, 75, 255), false) dxDrawRectangle(319, 323, 709, 21, tocolor(23, 209, 248, 255), false) dxDrawRectangle(screenW * 0.2953, screenH * 0.3379, screenW * 0.4578, screenH * 0.0508, tocolor(20, 20, 20, 255), false) dxDrawRectangle(screenW * 0.2734, screenH * 0.4209, screenW * 0.1266, screenH * 0.1221, tocolor(43, 43, 43, 255), false) dxDrawRectangle(screenW * 0.2734, screenH * 0.5752, screenW * 0.1266, screenH * 0.1221, tocolor(43, 43, 43, 255), false) dxDrawRectangle(screenW * 0.4250, screenH * 0.4209, screenW * 0.1266, screenH * 0.1221, tocolor(43, 43, 43, 255), false) dxDrawRectangle(screenW * 0.4250, screenH * 0.5752, screenW * 0.1266, screenH * 0.1221, tocolor(43, 43, 43, 255), false) dxDrawRectangle(screenW * 0.5938, screenH * 0.4209, screenW * 0.1266, screenH * 0.1221, tocolor(43, 43, 43, 255), false) dxDrawRectangle(screenW * 0.5938, screenH * 0.5752, screenW * 0.1266, screenH * 0.1221, tocolor(43, 43, 43, 255), false) dxDrawText("Arsenal ", screenW * 0.3664, screenH * 0.3154, screenW * 0.7727, screenH * 0.3516, tocolor(255, 255, 255, 255), 3.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("M4", screenW * 0.2953, screenH * 0.4346, screenW * 0.3875, screenH * 0.5244, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("AK", screenW * 0.4516, screenH * 0.4307, screenW * 0.5437, screenH * 0.5205, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("GLOCK", screenW * 0.6141, screenH * 0.4434, screenW * 0.7063, screenH * 0.5332, tocolor(255, 255, 255, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Skin 1", screenW * 0.2914, screenH * 0.6074, screenW * 0.3836, screenH * 0.6973, tocolor(255, 255, 255, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Skin 2", screenW * 0.4414, screenH * 0.6074, screenW * 0.5336, screenH * 0.6973, tocolor(255, 255, 255, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Veiculo", screenW * 0.5938, screenH * 0.6074, screenW * 0.6859, screenH * 0.6973, tocolor(255, 255, 255, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Para fechar aperta BackSpace", 328, 818, 1054, 928, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", false, false, false, false, false) end addEvent("HitM", true) addEventHandler("HitM", root, function() if painel then removeEventHandler("onClientRender", getRootElement(), paineldx) painel = false showCursor( false ) else addEventHandler("onClientRender", getRootElement(), paineldx) painel = true showCursor( true ) end end) bindKey("backSpace", "down", function() removeEventHandler("onClientRender", getRootElement(), paineldx) painel = false showCursor( false ) end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if painel == true then if isMouseInPosition(screenW * 0.4516, screenH * 0.4307, screenW * 0.5437, screenH * 0.5205) then giveWeapon ( source, 31, 9999 ) end end end end) Server: m1 = createMarker(2027.903, 1545.603, 10.819 -1, "cylinder", 1.5, 0,195,255, 100) addEventHandler("onMarkerHit", m1, function(hit) if getElementType(hit) == "player" then triggerClientEvent(hit, "HitM", hit) end end)
  6. quer dizer resolvi n só foi um mal entendido então meu codigo n sei oq ta de errado nele local screenW, screenH = guiGetScreenSize() local exibir = false function paineldx () dxDrawRectangle(388, 318, 701, 462, tocolor(45, 45, 45, 255), false) dxDrawRectangle(388, 317, 701, 17, tocolor(14, 214, 250, 255), false) dxDrawRectangle(398, 369, 241, 103, tocolor(30, 30, 30, 255), false) dxDrawRectangle(400, 487, 241, 103, tocolor(30, 30, 30, 255), false) dxDrawRectangle(398, 627, 241, 103, tocolor(30, 30, 30, 255), false) dxDrawRectangle(688, 364, 241, 103, tocolor(30, 30, 30, 255), false) dxDrawRectangle(688, 487, 241, 103, tocolor(30, 30, 30, 255), false) dxDrawRectangle(688, 627, 241, 103, tocolor(30, 30, 30, 255), false) dxDrawText("M4", 455, 374, 672, 452, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("AK-47", 424, 497, 641, 575, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Glock", 414, 637, 631, 715, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Skin 1", 717, 374, 934, 452, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Skin 2", 717, 493, 934, 571, tocolor(255, 255, 255, 255), 3.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Veiculo", 722, 652, 939, 730, tocolor(255, 255, 255, 255), 2.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Guardião Roleplay", 528, 334, 1014, 360, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end addCommandHandler("corp", function() if exibir == false then addEventHandler("onClientRender", getRootElement(), paineldx) exibir = true showCursor(true) else removeEventHandler("onClientRender", getRootElement(), paineldx) exibir = false showCursor(false) end end) function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end -- Modified version for DX Text function isCursorOverText(posX, posY, sizeX, sizeY) if ( not isCursorShowing( ) ) then return false end local cX, cY = getCursorPosition() local screenWidth, screenHeight = guiGetScreenSize() local cX, cY = (cX*screenWidth), (cY*screenHeight) return ( (cX >= posX and cX <= posX+(sizeX - posX)) and (cY >= posY and cY <= posY+(sizeY - posY)) ) end addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if exibir == true then if isMouseInPosition(398, 369, 241, 103,) then givePlayerMoney(10000) end end end)
  7. Então eu tentei fazer um painel dx de pega skin etc só que quando eu vou dar o comando n vai alguem consegue me ajudar
  8. então queria ajuda para um sistema que quando a pessoa morrese ao inves de ir para o hp direto ficar deitado por um tempo se pudessem me ajudar agradeço
  9. cara não é querer pedir muit mais existe um igual assim só que de skin, (deu certo esse)
  10. Alguem Teria um script que é só um Marker mais se eu tiver com acl pm spawnar uma vtr e se eu tiver com a acl samu spawn uma vtr da samu no mesmo marker ?
  11. cara eu n sei muito de script sabe, então preciso criar uma função ou um local função ?
  12. Então Queria saber se tem como me ajudar, tipo o player toma um tiro mais na cabeça mais inves de morrer ela toma uma quantidade de dano tipo dei um tiro ela tomou 30 de dano entende
×
×
  • Create New...