Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. As far as I know, MTA will have OOP in a future version, example ( I think ): local vehicle = createVehicle ( ) vehicle:position ( 0, 0, 0 ) vehicle:health ( 500 )
  2. playSound es solo client side, y seguramente, ese script es server side.
  3. You could try to use the MTA paradise game mode, it has the things you mentioned ( I think, never really used it ). Link: https://github.com/mabako/mta-paradise
  4. Use a timer. setTimer
  5. Is it me or this is going off-topic?
  6. That only works for the CJ skin.
  7. Check if the blip exists, if so, remove it, else, create it.
  8. Ah, es que puse "hitElement" en lugar de "hitPlayer", me confundi. Cambia "hitElement" por "hitPlayer".
  9. -- server side: function onEndMission ( vehicle ) if ( getElementDimension ( source ) == 10 ) and ( getElementInterior ( source ) == 0 ) and ( getElementModel ( vehicle ) == 410 ) then destroyElement ( vehicle ) showPlayerHudComponent ( source, "ammo", true ) showPlayerHudComponent ( source, "area_name", true ) showPlayerHudComponent ( source, "armour", true ) showPlayerHudComponent ( source, "breath", true ) showPlayerHudComponent ( source, "clock", true ) showPlayerHudComponent ( source, "health", true ) showPlayerHudComponent ( source, "money", true ) showPlayerHudComponent ( source, "radar", true ) showPlayerHudComponent ( source, "vehicle_name", true ) showPlayerHudComponent ( source, "weapon", true ) setElementDimension ( source, 0 ) setTimer ( setElementInterior, 500, 1, source, 0 ) setTimer ( setElementPosition, 1500, 1, source, -2489.859, 2510.48, 18.091 ) setPedRotation ( source, 0 ) outputChatBox ( "La prueba ha terminado", source, 255, 0, 0, false ) end end addEvent ( "pasar", true ) addEventHandler ( "pasar", getRootElement(), onEndMission ) -- client side: Marker15 = createMarker ( -1140.79, 1110.79, 38.20, "checkpoint", 3.2, 255, 0, 0 ) function Marker999 ( hitPlayer, matchingDimension ) if ( source == Marker15 ) then if ( hitElement == localPlayer ) then outputChatBox ( "Has pasado la prueba.", 255, 0, 0, false ) destroyElement ( Marker15 ) triggerServerEvent ( "pasar", localPlayer, getPedOccupiedVehicle ( hitPlayer ) ) end end end addEventHandler ( "onClientMarkerHit", getRootElement(), Marker999 )
  10. El error en cual de los dos scripts es? client o server side?
  11. https://wiki.multitheftauto.com/wiki/Ge ... eOccupants That function also returns the occupants.
  12. Castillo

    mysql help

    Connecting to the database everytime you need to make a query is a really bad thing.
  13. They must be compiled with the new MTA system, but you cannot do this, because the scripts are already compiled. You'll have to contact the DayZ team.
  14. Puede que la posicion este mal.
  15. Podes usar las siguientes funciones: getAttachedElements getElementType
  16. Lo pusiste como server side?
  17. No, you can disallow mods, but that doesn't mean they must use the same version.
  18. Use: xmlLoadFile xmlNodeGetChildren xmlNodeGetAttribute
  19. Castillo

    Other thing

    I don't know what is that.
  20. Castillo

    Other thing

    Guide: https://wiki.multitheftauto.com/wiki/PIMP Link: https://community.multitheftauto.com/index.php?p= ... ls&id=4830
×
×
  • Create New...