Jump to content

mafioz

Members
  • Posts

    81
  • Joined

  • Last visited

Everything posted by mafioz

  1. Use event - onClientMarkerHit
  2. local minutes = 5 function startTimer(player) setElementData(player,"piezas_timer",true) setTimer(setElementData,60000*minutes,1,player,"piezas_timer",nil) end function getPiezasContrabandistas (player) if getElementData(player,"piezas_timer") then return outputChatBox("The command can be used once every "..minutes.." minutes.", player, 255, 0, 0) end if not exports.factions:isPlayerInFaction(player, 9) then outputChatBox("No eres Contrabandista.", player, 255, 0, 0) return end if getElementDimension(player) ~= 97 then outputChatBox("No estás en el desarme.", player, 255, 0, 0) return end exports.items:give(player, 34, 20) exports.chat:me(player, "toma una caja con piezas.") outputChatBox("recibiste 20 piezas", player, 0, 255, 0) startTimer(player) end addCommandHandler("piezas", getPiezasContrabandistas) Haven't tested but try this ?
  3. mafioz

    Recoil system

    Yes, I didn't notice the setCameraTarget function in your code, it really works. But I would like the sight to rise up smoothly, and not abruptly. Thank you
  4. mafioz

    Recoil system

    I'm waiting for your help
  5. mafioz

    Recoil system

    This function rotates the camera to the right or left, so the function is not suitable. I need the camera to be pointing up for vertical recoil.
  6. mafioz

    Recoil system

    I want vertical recoil, not horizontal.
  7. mafioz

    Recoil system

    Hello. Thanks for your reply. When using setCameraMatrix I won't be able to rotate the camera. The only function to do this is setCameraTarget, now we need to get the correct camera direction to move it up a bit.
  8. mafioz

    Recoil system

    I'm waiting for your help
  9. mafioz

    Recoil system

    Does not work. The player's camera rotates approximately 180 degrees.
  10. mafioz

    Recoil system

    No. For any weapon
  11. mafioz

    Recoil system

    Hello. I have a question. How can you make vertical recoil in MTA? This is done in this video, while shooting, the scope goes up:
  12. Is it client side or server side? And tell us your code
  13. You can specify the transport speed in the setModelHandling function. Example: setModelHandling(415, "maxVelocity", 150) -- sets vehicle speed "cheetah" to 150
  14. Эта система работает только на скине CJ
  15. Greetings. 1) No, you cannot create vehicles using only variables. I am sure that information from this table is taken in some other file and vehicles are created. (function: createVehicle) 2) I'm not very good at these things, but I'm good at my personal server
  16. This problem your system
  17. I think you apply the animation immediately after creating the ped. Try setting the animation via setTimer ?
  18. function damageController(loss) local heal = getElementHealth(source) - loss if heal <= 10 then setElementHealth(source,100) setPedArmor(source,100) end end addEventHandler("onPedDamage", root, damageController) Perhaps you need this ?
  19. I did not understand your question, write in detail in English ?
  20. Very well! Keep up the good work, everything will work out!
  21. guiSetProperty( button1, "Disabled", "True" )
×
×
  • Create New...