Jump to content

Imortallity

Members
  • Posts

    24
  • Joined

  • Last visited

Recent Profile Visitors

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

Imortallity's Achievements

Civilian

Civilian (7/54)

2

Reputation

  1. Poxa cara, eu procurei muito aqui e consegui encontrar um cara do fórum EN que tinha uns mods que dão uns efeitos legais, sinceramente já fiquei satisfeito com eles, obrigado pelo comentário mano!
  2. Poxa, muito obrigado, me deu uma bela de uma ajuda mano, valeu de vdd!
  3. Bom, resumidamente eu quero saber se tem como instalar um ambientocclusion parecido com o do SA DirectX 2.0 no meu servidor de MTA? Obs: não sei se este tipo de pergunta pode ser feita nesta aba, se não poder avisa que apago, agradeço desde já!
  4. addEvent("SkinDiver",true) addEventHandler("SkinDiver",root, function (skin) setPedSkin ( source, 45 ) end ) Esta é a parte onde é setada a skin
  5. Boa noite galera, tenho um script de trabalho de mergulhador que ao passar em um CP aparece um painel e você pega o trampo, porém ao passar no CP para acabar o trampo você ganha o gold mas continua com a skin de mergulhador que deu, então queria que vocês me ajudassem com o comando para remover a skin, obrigado pela atenção e pela ajuda! Segue o código >> function startJobDiver ( thePlayer, seat, jacked ) if ( isElement ( objectmission ) ) then destroyElement ( objectmission ) end if ( isElement ( markertable ) ) then destroyElement ( markertable ) end if ( isElement ( markergobeach ) ) then destroyElement ( markergobeach ) end if ( isElement ( BlipDiver ) ) then destroyElement ( BlipDiver ) end local x, y, z = unpack ( Markers [ math.random ( #Markers ) ] ) markertable = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0, theplayer ) objectmission = createObject ( 1550, x, y, z ) addEventHandler ( "onMarkerHit", markertable , goBeach ) outputChatBox("Em algum lugar entre os objetos no fundo do mar há uma sacola de dinheiro, mergulhe e procure-a.", thePlayer, 255, 255, 0) end function goBeach ( thePlayer, seat, jacked ) markergobeach = createMarker ( 2936.3999023438, -2052.8999023438, 3.5, "cylinder", 2, 255, 0, 0, 50, thePlayer ) BlipDiver = createBlipAttachedTo ( markergobeach , 41, 2, 255, 0, 0, 255, 0, 99999.0, thePlayer ) if ( isElement ( objectmission ) ) then destroyElement ( objectmission ) end if ( isElement ( markertable ) ) then destroyElement ( markertable ) end outputChatBox("Você encontrou a sacola de dinheiro molhado, retorne até a praia.", thePlayer, 255, 255, 0) addEventHandler ( "onMarkerHit", markergobeach , donegobeach ) end function donegobeach ( thePlayer ) local TotalDiverjob = getElementData(thePlayer, "TotalpointDiverjob") or 0 setElementData(thePlayer, "TotalpointDiverjob", TotalDiverjob + 1) givePlayerMoney ( thePlayer, 750 ) startJobDiver ( thePlayer ) outputChatBox("A sacola de dinheiro molhado foi aberta e você conseguiu recuperar $750,00.", thePlayer, 0, 255, 0) if ( isElement ( markergobeach ) ) then destroyElement ( markergobeach ) end if ( isElement ( BlipDiver ) ) then destroyElement ( BlipDiver ) end end
  6. Sim, o exemplo dele serviu, muito obrigado a ambos pela ajuda!
  7. function blockJoin(player) if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("SAMU")) then if getPedOccupiedVehicle(player) then setElementPosition(getPedOccupiedVehicle(player), 1983.74536, -1465.94702, 13.39063) end setElementPosition(player, 1983.74536, -1465.94702, 13.39063) exports.dxmessages:outputDx(player, "Você não pode entrar aqui!", "error") end end addEventHandler("onColShapeHit", rBlock, blockJoin) Há algum erro nestas linhas? no debugscript 3 está dando "expected element at argument 1, got nil" para o GetAccountName e "Expected Account at argument 1, got bolean", ajudem por favor galera, agradeço desde já!
  8. Caaaaaara, valeu mano, me salvou legal!!!!!!
  9. O erro pelo qual peço suporte é o seguinte = https://prnt.sc/m9kcq5 [Código removido] o erro está na linha 84, por favor me ajude, agradeço desde já.
  10. Bom galera, tenho um sistema aqui de assalto a banco e queria uma ajuda de vocês com os "peds" local ped = {} local function refreshPeds() for index, p in pairs(ped) do if(isElement(p)) then destroyElement(p) end end ped[1] = createPed(164, 1492.946, -1138.541, 24.102, 270) ped[2] = createPed(164, 1522.538, -1134.385, 24.102, 90) ped[3] = createPed(164, 1513.467, -1150.606, 24.102, 0) ped[4] = createPed(164, 1492.641, -1141.252, 35.855, 270) ped[5] = createPed(164, 1522.694, -1139.455, 35.855, 91.664123535156) ped[6] = createPed(164, 1512.153, -1150.555, 35.855, 0) setPedArmor(ped[6], 100) setElementInterior(ped[1], 0) setElementInterior(ped[2], 0) setElementInterior(ped[3], 0) setElementInterior(ped[4], 0) setElementInterior(ped[5], 0) setElementInterior(ped[6], 0) for i = 0, #ped, 0 do setElementDimension(ped[i], dim) end setTimer(function() giveWeapon(ped[1], 27, 500, true) giveWeapon(ped[2], 27, 500, true) giveWeapon(ped[3], 27, 500, true) giveWeapon(ped[4], 27, 500, true) giveWeapon(ped[5], 27, 500, true) giveWeapon(ped[6], 27, 500, true) end, 1000, 1) setElementData(ped[1], "bankguard", true) setElementData(ped[2], "bankguard", true) setElementData(ped[3], "bankguard", true) setElementData(ped[4], "bankguard", true) setElementData(ped[5], "bankguard", true) setElementData(ped[6], "bankguard", true) end Bom, como podem ver esta função cria peds, estes peds só atiram em um player caso o player atire nele, bom oque eu queria era saber se existe algum código para ligar todos estes peds para assim que um player atirar em um deles, os três abram fogo ao mesmo tempo sabe? agradeço desde já! Acrescentando ao tópico aqui, também queria saber se é possível adicionar movimento aos peds, pois atualmente eles ficam parados em um único local, obrigado.
  11. Realmente funcionou, muito obrigado cara!!
  12. -- set vehicle owner function cl_SetVehicleOwner ( theVehicle, thePlayer ) local oldVehicle = getElementData ( thePlayer, "cl_ownedvehicle" ) if ( oldVehicle ~= false ) then -- unlock old car removeElementData ( oldVehicle, "cl_vehicleowner" ) removeElementData ( oldVehicle, "cl_vehiclelocked" ) removeElementData ( oldVehicle, "cl_enginestate" ) setVehicleLocked ( oldVehicle, false ) -- set vars for new car end setElementData ( theVehicle, "cl_vehicleowner", thePlayer ) setElementData ( theVehicle, "cl_vehiclelocked", false ) setElementData ( thePlayer, "cl_ownedvehicle", theVehicle ) setElementData( theVehicle, "cl_enginestate", true ) Os erros são nas linhas de "Unlock old car", os 4 estão dizendo "Expected Element at argument 1" oque faço galera? agradeço desde já.
  13. Olá, queria saber se alguém tem esse mod ou sabe quem tenha, estou com um projeto de servidor RP e ele seria perfeito. Agradeço desde já!
×
×
  • Create New...