Jump to content

Zorgman

Members
  • Content Count

    254
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Zorgman

  1. Felicitari, arata foarte bine facut. Intentionezi sa il lansezi si in engleza? Comunitatea romaneasca e destul de redusa ca numar cred (cel putin jucatorii de survival/dayz)
  2. You can freeze the vehicle to prevent it being pushed, but I don't think you can make the distinction between players and vehicles pushing it.
  3. You cannot extinguish fire objects, only fire created with https://wiki.multitheftauto.com/wiki/CreateFire If for some reason you have to use fire objects instead, you can probably employ a trick (using an invisible ped maybe) to detect when the fire object is hit by the water cannon and destroy the object.
  4. Zorgman

    gui scroll

    Pune cod sa incercam
  5. pls share alike if you ever complete the getting-down-from-roof part
  6. https://github.com/Zorangeorge/MTA-Dystopia-The-Incident/tree/master/[Dystopia]/dystopia_core Look in here, there are two scripts, climbing_client and climbing_server. You can take them out and put them in a standalone resource. It works with two or three types of ladder (object ids); face the ladder and double-jump to get on it; climbing down not implemented (you can move up and down on the ladder, but if you are on a roof you cannot really mount the ladder to descend) Credits go to Slothman for his superhero resource (I just took the Spiderman wallclimb superpower and restric
  7. Attaching the ped to an element will effectively keep it in the designated place, the 'updatePosition' parameter will not work. I haven't seen yet a solution to this (peds jacking cars or even peds entering a vehicle using the normal mechanics); I think it can be done, though likely would not look as good as in SP, since cutting some corners would be necessary. You need to calculate the positions required, make sure the vehicle is stationary (maybe even freeze it for a short while), make the ped walk to the car door and play the animation, you open the car door by script (on a loop if you
  8. You can get the weapon element using getAttachedElements(player) and filtering the result, then set alpha to 0. https://wiki.multitheftauto.com/wiki/GetAttachedElements
  9. Hi @Vetje, This is a concept I am interested in and I would like to help, hit me up on Discord (Zorgman#9883) or by forum PMs if you want and we can speak more about it. Cheers
  10. You can try this resource by Dutchman101
  11. Update vehicle position in the database onPlayerVehicleExit as well.
  12. local vehicleplate = result[1]["plate"] local x = result[1]["posX"] local y = result[1]["posY"] local z = result[1]["posZ"] local nearby = 20 if getDistanceBetweenPoints3D(x, y, z, getElementPosition(player)) <= nearby then outputDebugString("Vehicle is nearby") end Something like this maybe? I assumed that you store the vehicle position in the dB, I also assumed the keys for that
  13. You have to setElementAlpha onClientKey.
  14. function onVehicleDamage(attacker, wep, loss, x, y, z, tire) if getElementType(attacker) == "player" then if (exports.team:isPlayerInTeam(getVehicleOccupant(source), "TSK") and exports.team:isPlayerInTeam(attacker, "TSK")) then cancelEvent(true) elseif (exports.team:isPlayerInTeam(getVehicleOccupant(source), "WSP") and exports.team:isPlayerInTeam(attacker, "WSP")) then cancelEvent(true) end end end addEventHandler("onClientVehicleDamage", root, onVehicleDamage) This should do it.
  15. The source of onClientVehicleDamage event is the vehicle that got damaged. So your code is checking if the vehicle is in a team - you probably want to run your checks on the vehicle driver instead. You can use player getVehicleOccupant ( vehicle theVehicle, [ int seat=0 ] )
  16. Thanks IIYAMA! But I think you misunderstood me: I do want to see the effects, only that I need them to appear lower, at 85 height instead of the default 170(?). Something similar could be scripted, probably... Anyway, you confirmed what I knew, that I can only disable them I wanted to use them as cheap self-managed effects for a wasteland-type map. We could use a function for it, perhaps more people would like to use them like this? They provide good atmosphere imo. Cheers
  17. Is there a way to change the height at which clouds and fog effects start to appear? Not talking about the weather type, but about the fog that appears when you climb high enough, on the slopes of Mount Chilliad for instance. I get the effect when I position the map at z=185, but unfortunately I need it 100 units lower Thanks!
  18. There's a "carry" partial animation that only affects the hands, that's what I used to achieve something similar with the screen you posted. Cheers
  19. Never tried to alter the object properties but in case that won't work for some reason, a workaround would be disabling collision for those objects, wrap them in colshapes and break them onColShapeHit.
  20. I don't know the answer, but you can test it with a ped, you don't need another player
  21. I think this is what you need: https://wiki.multitheftauto.com/wiki/GetSoundWaveData
  22. I didn't knew about saveMapData either, this was actually what I was looking for so I tried it first, but it produced an xml file with empty object elements, not sure what i messed up Patrick's solution worked for me, I got my map. Thank you both!
  23. How can I save script generated objects to a .map file?
  24. Zorgman

    Marker Height

    @SuperM check player z when he triggers the marker and cancel if he's above ground
  25. You do need to set the property separately for each of the three skill levels, so what he is doing is correct afaik... this being said I don't know why it wouldn't work, I never tried to increase ammo for sawed-off
×
×
  • Create New...