Jump to content

szekelymilan

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by szekelymilan

  1. Draw the full image with dxDrawImage(), then draw the section on the full image you need with dxDrawImageSection(), another color.
  2. szekelymilan

    Blurry text

    You can test where is the problem with this program: http://escapistgame.com/font_test.zip font_test.exe -> made with DirectX font_test2.exe -> made with OpenGL I had this problem a day ago - font_test.exe showed me blurry texts. I've disabled NVIDIA FXAA, then it worked. I think that could solve the problem on AMD cards too.
  3. element1 element2 -> attached to element1 When you attach these two, get the rotation of element1, and element2. Save them in a table (rotations). Then, when you are trying to get the element2's actual rotation, just get the rotation of element1, and have 3 new variables: differenceX = rotations['element1'][1] - getElementRotation(element1)[1] -- make differenceY and differenceZ like this Then, you can get the element2's rotation, with rotations['element2'][1] + differenceX, or if it's not working, use - of + instead. I hope this can be working!
  4. I think, it only can be possible if you have a bot, who automatically updates it from an MTA Client's Server Browser. (like gametracker.com)
  5. I recommend you, to use dxDrawImage, but that's your choice. You can like this: guiSetProperty(guiElement, "Rotation", "x:[x_float] y:[y_float] z:[z_float]")
  6. I recommend you to use callRemote(), and update the stats in the PHP files every minute with setTimer() in Lua. If the PHP didn't receive the new stat, it means, the server is offline.
  7. Well, you need to use <download_priority_group>number</download_priority_group> in the meta.xml file, or you can use fileDownload() in a main resource's lua file. The default download priority group is 0, the higher value will be downloaded earlier.
  8. local arfolyam = math.random(200,5130) setTimer(function() arfolyam = math.random(200,5130) outputChatBox("Jelenlegi árfolyam: "..arfolyam) end, 500, 0) GUIEditor.window[1] = guiCreateWindow(0.35, 0.31, 0.31, 0.28, "Aranykereskedés", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.02, 0.59, 0.95, 0.14, "Az arany jelenlegi árfolyama: "..arfolyam, true, GUIEditor.window[1]) P.S.: I'm Hungarian too!
  9. A rectangle, then use dxDrawText, and a for loop for ipairs(getElementsByType('player')).
  10. Just do it on client-side. When the player quits, it is automatically destroyed, because of the client-side.. setTimer (function() -- creating an infinite setTimer. setElementData (localPlayer, 'points', tonumber(getElementData(localPlayer, points)) + 1) -- plus 1 to the player's points end, 10000, 0) -- and that's it!
  11. Use getElementRotation()
  12. On the leave command, just destroy the blip. function leaveTestGroup () -- your code -- ... if (blip) then destroyElement (blip) blip = nil end end addCommandHandler ("leave", leaveTestGroup)
  13. This is my script... I think it's bad, but. I can make that... addEventHandler('onClientResourceStart', resourceRoot, function() local dff = engineLoadDFF('files/kresz01.dff', 0) engineReplaceModel(dff, 1323) engineSetModelLODDistance(1323, 500) local myShader = dxCreateShader('files/shader.fx') end ) function first() local txd = engineLoadTXD('files/kresz_es01.txd') dxSetShaderValue( myShader, "1323", txd ) end function second() local txd = engineLoadTXD('files/kresz_es02.txd') dxSetShaderValue( myShader, "1323", txd ) end addCommandHandler ( "kresz011", first ) addCommandHandler ( "kresz012", second )
  14. Do I need? I think I need, beacuse one shader for the first texture and one more shader for the second texture. Or not? Help me, please!
  15. Oh, it's okay, but I only need one fx file? I think I need 2 or more fx file, to change the texture. I'm leading off the script.
  16. I can't... Sorry. I don't know what is shader in MTA. I'm using Google about 30 minutes ago, but there aren't any good description... And have I to use the WorldTexture "command"? Beacuse I don't want to change a world texture... (I think, the world texture is the world objects' texture. And the texture is the objects' texture. But if not, correct me.) I'm a basic scripter... very basic. But, I wrote a nice bank system, but this... I can't. Thanks, MakroBox EDIT: .fx file??? How can I create it? EDIT2: Is it a programming language? Oh my god....
  17. Okay, I make the object afternoon, thanks for the help! I'm goin' to the Wiki now, to understand your "commands". (sry for bad English :D) Thanks, MakroBox No! If I replace an interior... the road sign is okay (at the client), but by the server's idea it's a big object, and I can't move it, etc. I have to replace it to a road sign (beacuse I want a road sign)... Like 1323 OBJECT ID... See Walid's comment.
  18. Oh. I have 7 different DFF files (triangle up, triangle down, circle, etc.) And the TXD is the texture... Can you send me a script, please, of your idea? And in your idea... is TXD the trinagle up and etc. files and is the DFF the textures? Or what? And that's nice... you're amazing! Thanks, MakroBox
  19. You don't understand. "the object": Can you send me a WORKING ID? My problem: I change an object's texture, but if I changing a big object's texture I can't move it, only the size of the object (if my sign has 1 meter width and the object's 10 meter, i can move it only by 10 meters.) And there's only max. 20 goodsized object! Only 20, for 192 road signs. How can I do that? Please! Help me.
  20. But... Go to a Hungarian Roleplay server. (like SeeMTA or ExternalGamkng) They can solve this... But in the GTA... there are only 8 objects is same sized with my road signs...
  21. Hi guys! I have a big problem on my server with road signs. I want to add 192 road signs (custom objects) to my server, but when I wrote an unknown Object ID, it wasn't working. THE SCRIPT: addEventHandler('onClientResourceStart', resourceRoot, function() local txd = engineLoadTXD('files/kresz_es01.txd',true) engineImportTXD(txd, 19998) local dff = engineLoadDFF('files/kresz_es01.dff', 0) engineReplaceModel(dff, 19998) engineSetModelLODDistance(19998, 500) end ) It's a very simple script. I tried to change that id (19998) to a wire's id, and it was working, I was seeing it, but it's a big object by the server, and I couldn't move it a bit. I have only TXD and DFF files, beacuse I downloaded an .img file for SA-MP and with an .img extractor, I extracted the files. (https://sampforum.hu/index.php?topic=32525.0) <- it says the object ids are 19808 -> 19999. I know, there are tables in the editor, but there aren't 192 tables/road signs (only 8). So please help me! Can I create a new ID for objects? Thanks, MakroBox And sorry for my bad English! Bye!
×
×
  • Create New...