Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. Yeah, I once tried that, but it gets screwed up by laggy players. Like, if this event is triggered for you when you hit another vehicle, it doesn't mean its triggered for the other player either. Therefore, its complicated.
  2. Bonsai

    Mute song

    Just ask the creator, much easier for all of us.
  3. Hey, this isn't a real suggestion, I'm just wondering why there is only a vehicle collision event for client side? I have no idea about this MTA internal stuff so I don't know what might prevent such an event for server. Bonsai
  4. Well yeah, first post sounds more like loading maps scripts.
  5. Everything you need is written there. How do you expect people to solve that now?
  6. You won't be able to "fix" that gamemode. Just.. spend your time on something else. Like, the problem you have here now, posting it here shows that you have no idea what you are doing, since its a very big problem.
  7. I think this is more serious. This was fixed already, but I got the same buggy version again after I reinstalled MTA. Why are there versions with known bugs still around? I just used the version that you get from Download button on Main site.
  8. So, when a player joins u send him a list with all file names. Client checks if they are existing (actually you would also need to do some hashing e.g., to prevent manipulations). Client adds all missing files to a table and sends it back to server. Server opens each of that files, reads the content and send it to client. Client creates that file and write the data into it. After that u can load the mod.
  9. Well, first of all, in line 9, what file are you checking to exist there? You can only check files on the server in a serverside script. Also, use latentEvent. This won't make everything laggy during download.
  10. Yeah, had the same problem plenty of times. "test" as command doesn't work. Haven't seen any warning about that yet, but found out some day.
  11. Alright. So, whenever someone gets a hunter use: GetAccountData It returns false if there is no data stored == 0 hunters obviously. Then use: SetAccountData to increase it. To reset you could probably use: GetAccounts to go through all accounts and set the hunters to 0 again.
  12. Why do you call guest players nab What is this script about? At the moment, you seem to increase your hunter counter whenever a player gets a hunter. So why you want to save that for a certain player?
  13. Bonsai

    One code.

    More likely its because of your script stealing
  14. Maybe you should ask the Creator?
  15. Hey Peeps, I was playing around with colshapes, and I noticed colshapes only seem to detect hits, if the center of an element enters it. Like, if you drive in a colshape, and only the first part of the vehicle is inside, the hit won't be detected. Is there some way to make it detect even a slight hit? Bonsai
  16. Shh.. How is that supposed to help him Its basically what he wanted, but way to complicated for someone who doesn't know anything about that.
  17. Its not that big deal actually. I'm surprised nobody seems to notice or have this problem. Try: function start() showChat(false) setTimer(showChat, 5000, 1, true) end addEventHandler("onClientResourceStart", resourceRoot, start) While the chatbox is gone, try to press F8. For me, it doesn't work.
  18. There won't be anything like this. Ever. Also, I don't think its needed. Disabling cache + serverside stuff won't be downloaded anyway. Thats all you need. In the end, MTA stuff isn't that valuable at all.
  19. Uh, by something else I meant something that isn't related to what this topic is about. Its just a hard thing to do. If its about loading maps for one player only, its more or less easy as long as no scripts are involved. You are pretty alone with this stuff, since MTA doesn't deliver anything actual helpful. (besides from functions to create objects, setting dimensions etc.)
  20. If you can't get it working by yourself, then you are not meant to use it at all.
  21. The loadstring function is the easiest part of this stuff. You have to do a lot more. So, better try something else. Btw, is there a way to "block" debug warnings/errors that are e.g. caused by map scripts when doing it this way?
  22. Bonsai

    Table question

    As far as I know, you can delete everything by just doing: dxElements.statisticsgrid.player = {}
  23. Its two different pictures. Therefore, best way could be using a variable containing the image name and just change it.
  24. If you wanna make dxButtons I suggest you to get the cursor position and check if its over one button. Using gui buttons to fake that is a kinda dirty solution, at least in my opinion. Anyway, if you wanna stick to this, I would do something like this: - a function that sets some variable whether cursor is on button or not onClientMouseEnter/onClientMouseLeave - a function that handles the drawing depending on that variable
×
×
  • Create New...