Jump to content

MaddDogg

Members
  • Posts

    189
  • Joined

  • Last visited

About MaddDogg

  • Birthday 05/04/1992

Details

  • Gang
    Grove
  • Location
    Germany
  • Occupation
    Student -> Game development
  • Interests
    Programming, Anything computer-related, my server project Los Santos Stories

Recent Profile Visitors

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

MaddDogg's Achievements

Mark

Mark (16/54)

0

Reputation

  1. MaddDogg

    Report MTAQA Faker

    Those idiots are around everywhere, I myself had several of them in the last years. And they can almost never actually do, what they threaten, it's just their bluff. Just ban them and that's it. Btw, I've always wondered what the QA in MTAQA meant, could somebody please clear that up for me?
  2. MaddDogg

    Ped driver?

    No, peds can also be created and animated serverside.
  3. I guess this function is supposed to color all blips of players in the team color of the player? Did you check if the player is really in a team? Add some debug messages to check, where it stops. Also, I think getAttachedElements always returns a table. You should rather check, if the table has values in it, e.g.: if #attachedElements > 0 then
  4. What's that? local playerTeam = getPlayerTeam" class="kw2">getPlayerTeam" class="kw2">getPlayerTeam(source)
  5. MAN THAN USE IT! In your script there are OBVIOUS mistakes, if you don't want to see it, then don't, but no one will fix that for you.
  6. There are two obvious typos (wrongly written function/variable names) in your script. They're EXTREMELY easy to spot. You also might wanna use setElementVelocity.
  7. MaddDogg

    Ped driver?

    It theoretically is, but you would have to write the AI probably also using the path system from GTASA. And no, it's not easy.
  8. MaddDogg

    event

    If you want a directx element not to be drawn anymore, then remove the respective onClientRender event handler. removeEventHandler
  9. Haha looks really awesome! But you really have to get used to that low height of your view point, now you feel so small I also noticed that when starting to aim and when you stop shooting, the camera acts a bit weird for one second. I don't know why and if fixing is possible, but just wanted to mention it. Great job!
  10. MaddDogg

    "Solved"

    Did you read this? viewtopic.php?f=106&t=28964 The prebuilt MTA server files are for 32bit, to get it working on 64bit, follow the instructions of the tutorial above.
  11. How about you actually open the wiki once and just read it? https://wiki.multitheftauto.com/wiki/addEventHandler On this page you will find, why there is a 'false' in the addEventHandler in the code. This snippet has also nothing to do with the marker part, it's just for the button in the GUI window. And seriously stop double posting. There is an edit feature for forums like this, you know. I'm not gonna write you your whole script. To me it looks like you haven't even the slightest clue of what actually is an event, why to attach them or even how the whole element system in MTA works. So start learning scripting, otherwise you will never be able to understand anything, we explain to you in this thread.
  12. function spawnBMX() ... end addEventHandler("onClientGUIClick", Button1, spawnBMX, false)
  13. On the thing with SAMP bots: They just drive a patch predriven by you. They have no ability to follow you and just drive their prerecorded thing. I guess this is done by just saving the positions periodically at recording and later on having the bot drive from one point to the next, which is still quite easy to do. To actually make a dynamically driving and following bot, you would have to do something like this: Program the AI to find the (best) route to you, around obstacles, react to situations like when they hit a wall or when their car is upside down or when another player hinders them (rams them). And that's not all to it. To accomplish all that needs a LOT of work, skill and plain old time. It's something, which is out of reach for 99% of the people visiting this forum, and the rest is not willing to put so much effort in a still very basic AI, I would guess. I hope you now understand, why we can't help you with this. And since you seem to be very new to scripting, this is just nothing in your reach right now.
  14. How about figuring something out by your own? This isn't a place for "hey i want a script, can you make it for me?" Just attach some click event handlers to the buttons and call an according function. The function should spawn the vehicle with the position, which you get from the marker. Also, of course, create a marker. That's pretty much all you need: https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/OnMarkerHit https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/GetElementPosition https://wiki.multitheftauto.com/wiki/CreateVehicle
  15. Is it so hard to understand that it's not that easy? No one will be willing to do that for you just now, since it's something really hard and needs a lot of work. Even very good programmers need quite some time and effort to program such an AI. So just accept, that it's out of your range right now. Try to find an easier task to do, but don't start off with "programming an AI", since that's one of the most difficult parts of game world programming.
×
×
  • Create New...