Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. Bonsai

    TeamChat "Y"

    You can log anything a player writes. Search the Wiki for the events you need for this.
  2. Just return outside of the for loop, I guess.
  3. Bonsai

    Question.

    Okay, Sorry You can save anything in XML files that you want to keep even after restart. There are several functions to create, modify those files. Pretty simple, you only have to try it. Check the wiki. If I got you right you will need server side existing xml.
  4. But helping people who are s***** is annoying. If he made that script, but now is stuck at some point, there wouldn't be a problem. But he just copies/steals whatever it somewhere and expects the people on this forum to make it work for him. No, thanks.
  5. Why not ban these people instantly?
  6. Bonsai

    Kills Shooter

    As far as I know you die in an explosion when getting hit by a projectile, no way to find out if it was a normal low health explosion or caused by getting shot.
  7. EDIT: The Problem seems to be the glass objects. Hay e.g. works with some other function. But glass also doesn't work with breakObject function, so whats the difference between glass and hay?
  8. Bonsai

    Kills Shooter

    Colshapes But as far as I know it doesn't detect projectiles. I once made a standalone kill detection resource, works pretty good. I can give it to you if u want
  9. - setRenderTarget - dxdrawImage your map You will probably have to change the positioning but imo its much easier than drawing a section. Don't know about performance, but I tried so much weird things onClientRender already, ever experienced any lags.
  10. That! I don't know how MTA works, but if GTA already provides such a system, it should be possible.
  11. Juuuuust draw the full image
  12. I'm not sure what you are using it for, but render target + image section is redundant if you only want to keep the map picture radar sized, since it can't get out of the rendertarget anyway. You could just use dxDrawImage full size.
  13. Why do you use dxDrawImageSection anyway?
  14. So, what was the problem?
  15. There is no line 39.. so there are either parts missing or you post the wrong script. I also don't see where you set vehicleSpawnCounter[source] to 0. Assuming line 39 is line 14 here, vehicleSpawnCounter[source] is nil. Therefore, put "if not vehicleSpawnCounter[source] then vehicleSpawnCounter[source] = 0 end" EDIT: It seems like you clear the table when ever a player requests a car.
  16. It doesn't lag for me. dxSetRenderTarget(rendertar, true)
  17. Try onPlayerConnect.
  18. You also have to clear the rendertarget on every frame. There is an argument when setting a rendertarget.
  19. I guess you have to set vehicleSpawnCounter[source] to 0 somewhere first. But you can also put some debug outputs to find problems yourself.
  20. Ohhhh, should have read more careful Do you create a transparent render target?
  21. Bonsai

    Hello :)

    What you need is: https://wiki.multitheftauto.com/wiki/Main_Page Bonsai
  22. The Rotation offset gotta be the the center of the render target, not the current center of the image, since it moves around. Just get the distance between center of image and center of render target and use those as offsets.
  23. Bonsai

    Info system

    Thats not how this board works.
  24. Ohh, I thought you meant the people who created the resource did something wrong Nevermind.
×
×
  • Create New...