Jump to content

IIYAMA

Moderators
  • Posts

    6,064
  • Joined

  • Last visited

  • Days Won

    209

Everything posted by IIYAMA

  1. You should not sold your maps/gave them away. Everything in mta gets ripped to the bone, nobody has rights.
  2. No there isn't, you have to make it yourself or request it at the resources section.
  3. 2 ways. - Get the pixels of the render target and get only the pixels you want. (you better not render the whole process this every frame unless you have a powerful gpu) https://wiki.multitheftauto.com/wiki/DxGetTexturePixels https://wiki.multitheftauto.com/wiki/DxGetPixelColor https://wiki.multitheftauto.com/wiki/DxCreateTexture https://wiki.multitheftauto.com/wiki/DxSetPixelColor https://wiki.multitheftauto.com/wiki/DxSetTexturePixels - Or render it with: (so you can cut your image like you want) https://wiki.multitheftauto.com/wiki/DxDrawImageSection The benefit of the first way is that you will render at a lower resolution, which can keep up the performance. The benefit of the second way is that you can update it every frame, but I still do not recommend full resolution.
  4. I doubt that there are much people in mta, do know how to do that. If you are a mod maker, you will be quiet angry when you found that a kid just copied one of your mods out of their client folder and is using that without any permission. So giving a possible solution to keep it away from kids doesn't sounds like a bad idea, does it? Not that I will protect any mods, I am not a mod maker.
  5. try this: team1 = createTeam ( "Team A", 0, 255, 0 ) team2 = createTeam ( "Team B", 200, 0, 100 ) local changeTeam = function (player,key) if key == "F1" then setPlayerTeam(player,team1) spawnPlayer (player, 0, 0, 5, 0, 68, 0, 0) giveWeapon ( player, 31, 200 ) elseif key == "F2" then setPlayerTeam(player,team2) spawnPlayer (player, 0, 0, 5, 0, 212, 0, 0) giveWeapon ( player, 27, 200 ) end setCameraTarget(player) end function setCameraOnPlayerJoin() fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234,99.881813049316) bindKey(source,"F1","down",changeTeam) bindKey(source,"F2","down",changeTeam) end addEventHandler("onPlayerJoin", root, setCameraOnPlayerJoin)
  6. What xXMADEXx did is maybe a better solution duel the performance. Decoding large mods cost lots of time, you may get frame freezes or crashes. But if it is saver, that will always be the question. As continuous on this idea, when you use underscores it will be easy to fix. But when you copy a part of the existing code and copy that, you will never know that it is differed. By deleting an amount of extra characters. (like 10 in the beginning and 10 at the end) You will have your perfect decoded mod. Example: (original mod) éL>éÇOéòÅé-¬éÈ The corrupt one: (copied 4 in the beginning and 4 at the end) éL>ééL>éÇOéòÅé-¬éÈ-¬éÈ
  7. You can make it as hard as you want. It will be pity hard to read out variables and knowing the use of them, if you based the key on a combination of two/more variables you probably will give him a headache.
  8. @LaCosTa You are creating for every player his own functions. It isn't really necessary to give the garbage collector more work.
  9. Can't you only use the player matrix?
  10. engineSetModelLODDistance
  11. Try a higher value then 300, so you are 100% sure it will be forcing the object to be visible. A value 400 like will reduce the chance that it will drop lower then 300.
  12. What if that is the only object in your map? Will it still be invisible?
  13. IIYAMA

    Alt+tab / windowbutton

    @Dutchman101 Thank you very much for explaining so much. I did all the steps and extra steps, but unfortunately no changes. Mta works or doesn't work when I make those changes. It is probably because of the driver update and because I am use crossfire, I will have to wait till they fix it. The only strange thing I noticed is that MTA doesn't require the gta_sa.set It is starting up without recreating it. Instead it is probably saved in: MTA San Andreas 1.4\MTA Since I have to destroy that folder to debug it. Settings are saved in: coreconfig.xml
  14. IIYAMA

    Alt+tab / windowbutton

    I fixed it by deleting the folders: (and reinstall mta) - mods - MTA It seems my pc doesn't like mta running in window mode. The problem of not able to use alt+tab and windowbutton still remain. Are they working correctly for you?
  15. Of course it is, 3de argument: streamedIn: If true, function will only return elements that are streamed in. https://wiki.multitheftauto.com/wiki/GetElementsByType
  16. IIYAMA

    Alt+tab / windowbutton

    I bugged it when I tried different settings. Which file has to be recreated to restore the default settings? I already tried to recreate the gta user file, but it seems not to work. - I replaced the file you shared with me on mega.co (peds.ide) This was after I bugged it. - Audio, http://www.filehippo.com/download_realt ... o_vista_64 << done
  17. IIYAMA

    Alt+tab / windowbutton

    MTADiag http://pastebin.mtasa.com/412461713 Nope, I prefer a clean gta.
  18. Lol, then it isn't strange that it doesn't load the object fully. I asume the col is loaded and the texture isn't. Anyway I didn't know mta supported so much streamed in elements. o_O You definedly executed this clientside?
  19. how many objects are streamed in? -- client outputChatBox(#getElementsByType("object",root,true)) -- 3 argument makes sure it only includes streamed in objects.
  20. how do you roll away? O_o anyway take a look at: https://wiki.multitheftauto.com/wiki/SetFarClipDistance
  21. After some updates from 1.4 I am having trouble using alt+tab or using the windowbutton. When I using them in mta, my screen gets black and I won't be able to go to my background. I only having this problem with mta. Here is some information about the video software and hardware, but I don't think it is the problem since it is only with mta.
  22. Of course I recommend you it, but not before the event("onResourceStart") has been occurred.
  23. When the "onResourceStart" event gets executed, all global variables are access able in all 'files'. You can start calling functions from the other side after this event has been occurred. It is possible to call them before this event, but you can only call loaded ones. This depends on which the meta.xml loads first. I won't recommend you this.
×
×
  • Create New...