Jump to content

DiSaMe

Helpers
  • Posts

    1,449
  • Joined

  • Last visited

  • Days Won

    32

Everything posted by DiSaMe

  1. If setPedAimTarget worked on players, there would be no problem.
  2. Do you see a way to flip car onto two wheels with matrices? There's no such function like setElementMatrix. But the code Antibird posted was for getting the rotation, not setting it, and I'm talking about another, similar way to do that.
  3. You say you don't want to flip it to the roof, but you see it as a problem when it's flipped and Y rotation is still shown to be below 90 degrees
  4. rotate 180 degrees by Z - reverse its direction rotate 180 degrees by Y - make it stand on its roof rotate 180 degrees by X - make it stand on its roof, but the direction will be the opposite than rotating by Y So if you flip car by X and Z, it will be the same as flipping it by Y. And the way of getting Y rotation Antibird wrote here is a bit similar to the one I suggested.
  5. That's because rotating vehicle 180 degrees on Y axes is the same as rotating it on X and Z axes, both 180 degrees. So you could use X rotation to check if the vehicle is upside down, and if it is, then ry value must be set to 180-ry.
  6. You could try changing dimension of the elements client-side. Every client will only see the changes locally. You won't need to copy elements.
  7. No, it doesn't. At least to me.
  8. Put setTimer into a function which is attached to onMarkerHit event.
  9. It's fine to name variables "source", as long as function isn't attached to any event. I always use "source" as a variable name for the player element in command functions and that doesn't cause any problems.
  10. Readme file updated and /clear bug fixed: http://www.sendspace.com/file/3owikg
  11. You can make elements invisible to clients with setElementVisibleTo, but AFAIK, there's some bug which makes this function don't work on custom elements.
  12. You can't replace DFF of the skin. I hope MTA developers will make that possible in the future.
  13. I thought of improving this script, but didn't change anything, so this is download link: http://www.sendspace.com/file/emhly9
  14. Or just set two more parameters, alignX and alignY, to "center" in dxDrawText.
  15. I know. I thought of improving my gamemode, so there would be some point of playing it. But I decided there's no need to. Anyway, I'm going to make peds traffic in my gamemode, and it would use the similar way of pathfinding.
  16. name="delux object" must be removed, moved to the end or you could change name to id.
  17. Collision sphere cannot be created because chatRadius doesn't have a value. And in commands you get position of source, while the player element is stored in variable player.
  18. I don't want this to sound offending, but you seem a bit paranoic. MTA SA is an open source program, so everyone can see everything it does in the computer. I'm sometimes paranoic too, but not about MTA
  19. That's my small gamemode with a killer who follows path nodes to find you. Pathfinding is the most important feature of the script. The only data synced by the script is killer's target element. Ped control states are set on each client individually. I had tried to make this mod on CLEO3 before, but pathfinding was the problem. CLEO4 has more features and that would be easier, but I don't work on it (I only tried it) because I think it would be better to show everyone in practice what is possible to do in MTA.
  20. GTA SA object limit is 350. Is it unstable with that many objects, or what?
  21. DiSaMe

    MTA vs SAMP

    What's the point of merging? So that we would have a program with MTA features and 500 players limit? Increasing it in MTA would be more practical than merging two different programs.
  22. DiSaMe

    MTA vs SAMP

    First reason is program name. If you google "GTA SA multiplayer", it will show SA-MP in the first place because it's "San Andreas Multiplayer". Another reason is release date. SA-MP was released earlier than MTA SA DM (don't know what about MTA SA Race, but it has less freedom). Then most players got used to it and now they're afraid of moving. By the way, SA-MP being released earlier means less work and more bugs/less features When I look at feature suggestions topic in SA-MP forums, I see that almost anything players request is possible in MTA.
  23. If you want to get length, width and height, use getElementBoundingBox.
  24. Opening function uses airportgate, while the element is stored in airportgate2.
×
×
  • Create New...