Jump to content

copo

Members
  • Posts

    16
  • Joined

  • Last visited

Details

  • Gang
    CJ barbudo
  • Location
    Brasil
  • Occupation
    script
  • Interests
    ajudar e ser ajudado

Recent Profile Visitors

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

copo's Achievements

Square

Square (6/54)

3

Reputation

  1. Foi certinho, ce ta merecendo trocar de nick já
  2. function versujis(pllayer) local Dinheiro__Sujo = getElementData(localPlayer,"TS:sujo") outputChatBox([info] R$".. Dinheiro__Sujo..",player,255,255,255,true) end addCommandHandler("versujo", versujis, false, false) Não consigo por para funcionar, já editei varais vezes e nada. Pfvr alguém ajuda.
  3. @IIYAMA I tried to create everything that was said, but I didn't understand anything they said function shamalFunctions() local vehicle = getPedOccupiedVehicle(localPlayer) local x, y, z = getVehicleComponents(vehicle, "door_lf_dummy" ) if(vehicle)then if getElementModel(vehicle) == 519 then local rx, ry, rz = getVehicleComponentRotation(vehicle, "door_lf_dummy") setTimer(function (door_lf_dummy) setVehicleComponentRotation(vehicle, "door_lf_dummy", rx, ry+1, rz) end,100,90) end end end setTimer(function () ------------------- -- place it here -- ------------------- -------------------- -- and remove: +1 -- setVehicleComponentRotation(vehicle, "gearflapleft", rx, ry --[[ +1]], rz) -------------------- ----------------- -- debug it!!! -- iprint("Debugging the variable ry:", ry) ----------------- end,100,90) bindKey("u", "down", shamalFunctions) I know it's all wrong, but I wanted to understand how you use it to make other similar scripts
  4. onde baixo os mods que vc posta em seu YT ?

     

    1. Lord Henry

      Lord Henry

      Eles não estão disponíveis pra download.

    2. copo
  5. obrigado amigo, ajudou bastante, agradeço muito. sobre o terceiro script eu expliquei em outro comentario que vc comentou em meu perfil
  6. opa amigo, obrigado por esta me ajudando, porem nn deu certo, talvez seja pq fiz errado kkkkk function miraplayzoon(thePlayer) if not getElementData(thePlayer, "zoom") then setWeaponProperty("m4", "pro", "flag_aim_1st_person", true) setWeaponProperty("m4", "std", "flag_aim_1st_person", true) setWeaponProperty("m4", "poor", "flag_aim_1st_person", true) setElementData(thePlayer, "zoom", true) else setWeaponProperty("m4", "pro", "flag_aim_1st_person", false) setWeaponProperty("m4", "std", "flag_aim_1st_person", false) setWeaponProperty("m4", "poor", "flag_aim_1st_person", false) removeElementData(thePlayer, "zoom") end end addCommandHandler("mira", mira) addCommandHandler("zooon", mira) só pra re explicar to querendo que ele esteja assim inicialmente: https://prnt.sc/ktmJS_VEW4HG dar o comando /zoom e virar assim: (assim q a mira da arma fica quando da start no flag_aim_1st_person) https://prnt.sc/bIHcv3N_6XDv e quando der /zoom novamente ele irá desativar e voltar ao normal: mesma imagem da de lá do topo https://prnt.sc/ktmJS_VEW4HG ou seja, eu quero meio q ativar primeira pessoa por comando quando puxa a arma pra a pessoa escolher como quer mirar, qual forma seria melhor para ele
  7. copo

    Weapon Zoom

    I wanted to add a command to be able to activate and deactivate this script whenever the player wants, example: of /weapon and turn flag_aim_1st_person of /weapon again and turn off flag_aim_1st_person
  8. Estou tentando por o addcommandhandler mas não consigo de forma nenhuma, se alguém tiver a solução para algum dos 3 scripts a baixo me avisa fznd o favor estou tentando abrir painel DX por comando ao em vez de por bindkey porem não consigo, já tentei de vários jeitos e formas porem nn vai, já pesquisei aqui no fórum, no YouTube porem nn vai function Pdx ( ) dxDrawRectangle(504, 197, 314, 397, tocolor(255, 0, 0, 100), false) dxDrawRectangle(554, 238, 218, 72, tocolor(255, 255, 255, 255), false) dxDrawRectangle(554, 347, 218, 72, tocolor(255, 255, 255, 255), false) dxDrawRectangle(554, 455, 218, 72, tocolor(255, 255, 255, 255), false) end function abrir (_,state) if painel == false then showCursor(true) addEventHandler("onClientRender", root, Pdx) painel = true else showCursor(false) removeEventHandler("onClientRender", root, Pdx) painel = false end end addCommandHandler("disappear", abrir) addCommandHandler("v", abrir) tabem tentei fazer uma versão para uma bussola: --2017 ~ Mark Gyori https://markgyori.eu/ --Contact: [email protected] local sx, sy = guiGetScreenSize() local top = 30 local font1 = dxCreateFont("font.otf", 11) local font2 = dxCreateFont("font.otf", 10) local exibir_bulssola = false local cords = { {0, "N"}, {15, 15}, {30, 30}, {45, "NE"}, {60, 60}, {75, 75}, {90, "E"}, {105, 105}, {120, 120}, {135, "SE"}, {150, 150}, {165, 165}, {170, "S"}, {195, 195}, {210, 210}, {225, "SW"}, {240, 240}, {255, 255}, {270, "W"}, {285, 285}, {300, 300}, {315, "NW"}, {330, 330}, {345, 345} } function draw ( ) local show = 15 local center = math.ceil(show / 2) - 1 local _, _, r = getElementRotation(getCamera()) local pos = math.floor(r / 15) local slotwidth = 40 local smooth = ((r - (pos * 15)) / 15) * slotwidth local left = sx / 2 - ((show + 2) * slotwidth)/2 for i=1, show do local id = i + pos - center if(id > #cords)then id = id - #cords end if(id <= 0)then id = #cords - math.abs(id) end if(cords[id])then local alpha = (tonumber(cords[id][2]) or 0 > 0) and 175 or 255 if(i < center)then alpha = alpha * (i/center) end if(i > center)then alpha = alpha * ((show-i)/center) end dxDrawRectangle(left + slotwidth * i - smooth + (slotwidth / 2 - 1) + 1, top + 10 + 1, 2, 10, tocolor(0, 0, 0, alpha * 0.5)) dxDrawRectangle(left + slotwidth * i - smooth + (slotwidth / 2 - 1), top + 10, 2, 10, tocolor(255, 255, 255, alpha)) dxDrawText(cords[id][2], left + slotwidth * i - smooth + 1, top + 20, left + slotwidth * (i+1) - smooth + 2, top + 40, tocolor(0, 0, 0, alpha * 0.5), 1, font2, "center", "center") dxDrawText(cords[id][2], left + slotwidth * i - smooth, top + 20, left + slotwidth * (i+1) - smooth, top + 40, tocolor(255, 255, 255, alpha), 1, font2, "center", "center") end end dxDrawText("➤", left + 4, top + 26 + 2, left + ((show + 3) * slotwidth) + 30, 0, tocolor(0, 0, 0, 160), 1, font1, "center", "top", false, false, false, false, false, 90) dxDrawText("➤", left, top + 26, left + ((show + 3) * slotwidth) + 30, 0, tocolor(255, 255, 255, 255), 1, font1, "center", "top", false, false, false, false, false, 90) end addCommandHandler("m1", function() if exibir_bulssola = false then addEventHandler("onClientRender", getRootElement(), draw) exibir_bulssola = true else removeEventHandler("onClientRender", getRootElement(), draw) exibir_bulssola = false end end) --->--->--->---> (inclusive tentei mudar a direção a qual ele gira não consegui se alguém souber como avisa)<---<---<---<--- e também tentei para ativar e desativar primeira pessoa na arma através de comando: function zoomarma (thePlayer) setWeaponProperty ( 30 , "poor" , "flag_aim_1st_person" , true ) setWeaponProperty ( 30 , "std" , "flag_aim_1st_person" , true ) setWeaponProperty ( 30 , "pro" , "flag_aim_1st_person" , true ) end addCommandHandeler ("m1", zoomarma ) esse addCommandHandeler não funciona de jeito nenhum
  9. copo

    Weapon Zoom

    e ativar primeira pessoa pelo setWeaponProperty usando comando ? ativar e desativar ele com comando, tem como ?
  10. estou tentando fazer script a 2 horas e não consigo, já tentei de varias formas diferentes, se trata de vc dar um comando e ele ativar: setWeaponProperty("m4", "pro", "flag_aim_1st_person", true) setWeaponProperty("m4", "std", "flag_aim_1st_person", true) setWeaponProperty("m4", "poor", "flag_aim_1st_person", true) quero ativar e desativar com comando function miraplayzoon(thePlayer) local enabled = getWeaponProperty(thePlayer, "zoon") if (enabled == true) then setWeaponProperty("m4", "pro", "flag_aim_1st_person", false) setWeaponProperty("m4", "std", "flag_aim_1st_person", false) setWeaponProperty("m4", "poor", "flag_aim_1st_person", false) setWeaponProperty(thePlayer, "zoonmira", false) outputChatBox ("Você desativou o zoon", thePlayer) setsetWeaponProperty(thePlayer, "zoon", false) elseif (enabled == false or enabled == nil) then setWeaponProperty("m4", "pro", "flag_aim_1st_person", true) setWeaponProperty("m4", "std", "flag_aim_1st_person", true) setWeaponProperty("m4", "poor", "flag_aim_1st_person", true) setsetWeaponProperty(thePlayer, "zoonmira", true) outputChatBox ("Você ativou zoon", thePlayer) setsetWeaponProperty(thePlayer, "zoon", true) else end else end end addCommandHandler("mira", mira) addCommandHandler("zooon", mira)
  11. ola, tou criando um script parecendo aquele de grudar encima do carro ao apertar x, só q é por comando e ele vai parar em um local fixo escolhido por mim no carro, tipo, uma s10, vc da /P5 e ele vai parar na caçamba da S10, mas gostaria de fazer ele fazer isso ao apertar "G" ele ira proucurar onde está vazio e ir e entrar onde tiver Resumo: quero criar uma nova especie de acento pros carros q tem caçamba
×
×
  • Create New...