Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 31/10/19 in Posts

  1. شيك على صفحة الفنكشن من الويكي https://wiki.multitheftauto.com/wiki/DxDrawCircle bool dxDrawCircle ( float posX, float posY, ***float radius*** [, float startAngle = 0.0, float stopAngle = 360.0, int theColor = white, int theCenterColor = theColor, int segments = 32, int ratio = 1, bool postGUI = false ] ) مميزه لك ب نجوم
    1 point
  2. function painel(thePlayer) if isPlayerInACL(thePlayer, "TAGBOPE") or isPlayerInACL(thePlayer, "grupoACL") then ----- o grupo que vc criou no painel admin triggerClientEvent(thePlayer, "BPAbrir", getRootElement()) else --outputChatBox("#FF0000* #000000[#FF0000ERRO#000000]#FFFFFF- Somente mebros da BOPE podem abrir o painel.", thePlayer, 255, 0, 0, true) end end 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 Em "grupoACL" coloque o segundo grupo permitido. Movido para: https://forum.multitheftauto.com/forum/127-programação-em-Lua/ @Sh4d00w
    1 point
  3. I am still working on the water shader. I managed to add specular lighting, shore foam and screen space reflections, but the reflections are currently inaccurate and require additional work. That stuff is not easy. But i think the outcome speaks for itself, it looks absolutely amazing. DEFAULT GTA, NO SHADER: WATER SHADER WITH SHORE FADING, SHORE FOAM, SPECULAR SUN LIGHTING, CAUSTICS, SCREEN-SPACE REFLECTIONS + DETAIL SHADER + GODRAY SUN SHADER + DYNAMIC SKY SHADER
    1 point
  4. function PainelAbrir() if getPedOccupiedVehicle (localPlayer) then if not painel then if not fontScale then fontScale = screenW/60 end showCursor(true) painel = true addEventHandler("onClientRender", getRootElement(), PainelVeiculo) playSound("som/painel.mp3") else showCursor(false) painel = false removeEventHandler("onClientRender", getRootElement(), PainelVeiculo) end else outputChatBox ("É necessário estar em um veículo.", 255, 0, 0) end end bindKey("F5", "down", PainelAbrir)
    1 point
  5. Ninguém aqui faz scripts de graça mano. Mas podemos lhe ajudar para vc mesmo arrumar seu painel. Na função que abre o painel, é só vc colocar a seguinte condição: if getPedOccupiedVehicle (thePlayer) then É claro que, depende muito de como é o código do seu painel. Seria mais fácil se vc postasse pelo menos só a parte do código que abre o painel para verificarmos.
    1 point
×
×
  • Create New...