Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/12/19 in Posts

  1. local objeto = createObject (980, 1497.400, -698.5, 96.5, 0, 0, 0) local x, y, z = getElementPosition (objeto) local Zona = createColCircle (x, y, 6, 6) function Function (thePlayer, matchingDimension) if getElementType (thePlayer) == "player" then -- Se o elemento que colidiu no col for um player, então: if (isObjectInACLGroup ("user."..getAccountName (getPlayerAccount (thePlayer)), aclGetGroup("Admin"))) then -- Se o jogador estiver na acl "Admin" por exemplo, então: moveObject (objeto, 500, 1497.400, -698.5, 20.300) outputChatBox ("@Portão aberto!", thePlayer) end end end addEventHandler ("onColShapeHit", Zona, Function) function Function2 (thePlayer, matchingDimension) if getElementType (thePlayer) == "player" then -- Se o elemento que saiu do col for um player, então: if (isObjectInACLGroup ("user."..getAccountName (getPlayerAccount (thePlayer)), aclGetGroup("Admin"))) then -- Se o jogador estiver na acl "Admin" por exemplo, então: moveObject (objeto, 500, 1497.400, -698.5, 96) outputChatBox ("@Portão fechado!", thePlayer) end end end addEventHandler ("onColShapeLeave", Zona, Function2) @Niick
    1 point
  2. Tente assim, para isso você precisa de um IsObjectInACLGroup. objeto = createObject ( 980, 1497.4000244141, -698.5, 96.5, 0, 0, 0 ) x,y,z = getElementPosition (objeto) Zona = createColCircle ( x,y, 6, 6 ) --portao aberto-- function Funcion () for _, group in ipairs ({"Grupo que você deseja"}) do if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then moveObject ( objeto, 500, 1497.4000244141, -698.5, 20.300000190735 ) end end end addEventHandler ( "onColShapeHit", Zona, Funcion ) --portao fechado-- function Funcion2 () for _, group in ipairs ({"Grupo que você deseja"}) do if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then moveObject ( objeto, 500, 1497.4000244141,-698.5, 96.5 ) end end end addEventHandler ( "onColShapeLeave", Zona, Funcion2 ) Se te ajudei dá um Thanks!
    1 point
  3. UPDATE: -NEW method for crouch/prone: The player can now use "crouch key" to crouch or "prone key" to prone independend of the current movement state. That means, when the player is prone and presses "crouch", he will go crouch instead of standing up and when the player is prone and presses "prone" again or "jump" he will stand up. This is a lot more straightforward than the default behaviour because now you know exactly what you will get when pressing crouch, prone or jump. It is very likely that this has some small bugs somewhere, so if you find a bug, report it. I want to make this as perfect as possible. -Due to abuse of admin commands all players will now receive a chatbox message when a staff member does something like giving ammo, health, etc -Fixed water shader enabling itself despite having it disabled in settings -Fixed the fact that we had 2 different moons -Fixed visual artifacts that were going on at the water surface when SSAO was enabled -Fixed a small issue with votemap not correctly checking for the player account -Fixed a compatibility problem between rain drops and godray sun shader -Fixed some situations of sudden color switching of peds / vehicles when godray sun shader is enabled -Fixed a strange sun appearing in the night when dynamic sky is disabled -Fixed sudden light direction change when moon or sun started to appear -Fixed a bug that let impact holes disappear when vehicles stream out for a short while -Fixed a bug that displayed the wrong dynamic skybox when disabling and re-enabling dynamic sky -Added a tooltip that torpedo range is 800 meters -Players can no longer reload their weapon while sitting in a ship -Increased range of torpedoes from Speed boats and torpedo planes from 600 to 800 meters -Torpedo trails are now better visible on the water surface when the new water shader is enabled -Re-Enabled votekick (Someone must have disabled it) -Set Money in admin panel has been replaced with Give Money
    1 point
  4. C'est pas moi qui recherche hein, c'est Frize. Il va être content de voir qu'il y a enfin un dev de dispo ^^
    1 point
  5. Cuidado ae cara. Ele não é o Danilin. A não ser que vc conheça ele na RL e tenha dado esse apelido pra ele.
    1 point
  6. nossa mt obg danilin cara to mt feliz sério msm e para o pessoal que precisa da função ta aqui pra vcs !! function creatPedProjection() if panelState then if (getElementData(localPlayer, "Tab") == false) then x1, y1, z1 = getCameraMatrix() myElement = createPed (getElementModel(localPlayer), x1, y1, z1) myObject = exports.object_preview:createObjectPreview(myElement, 5, 5, 0, x*250, y*150, x*330, y*410, false, true, true) exports.object_preview:setRotation(myObject,-0, 0, 160) setElementData(localPlayer, "Tab", true) for theType=0, 17 do local texture, model = getPedClothes( localPlayer, theType ) if texture then addPedClothes(myElement, texture, model, theType) end end end end end function resetPedProjection () exports.object_preview:destroyObjectPreview(myObject) myElement = nil myObject = nil end
    1 point
  7. Exato. Ficaria assim: setElementCollidableWith ( seuPed, jogador, true/false )
    1 point
  8. tenta isso aqui man setElementCollidableWith
    1 point
  9. function autoText () outputChatBox ("Acesse nosso site: #ffff00https://forum.multitheftauto.com/forum/97-portuguese-português/", root, 255, 255, 255, true) end setTimer (autoText, 1800000, 0)
    1 point
  10. function dxDraws() dxSetRenderTarget(renderTarget, true) dxSetRenderTarget() dxDrawImage(375, 198, 835, 518, renderTarget, 0 ,0 ,0,tocolor(0, 5, 7, 168)) local Percentage = (-moveY)/Size dxDrawRectangle(1210-scrollerW, 198+Percentage*15, scrollerW, scrollerH, tocolor(30, 194, 161, 239)) dxDrawText(Lines, 0, moveY, 375, 518, tocolor(255, 255, 255, 255)) end addEventHandler("onClientRender", getRootElement(), dxDraws) It was behind your panel.
    1 point
×
×
  • Create New...