Jump to content

H5N1

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by H5N1

  1. Hello. I used to use mysql plugin for MTA, and it have insert_id function. New MTA 1.1 dont have it. How to use it without plugin?
  2. Lol, so obvious. Thanks
  3. Hello. I have small but, annoying problem. I'm making handbrake for cars on mouse. I made handbrake bar ( http://img7.imagebanana.com/img/khiw4b3 ... 213056.png ). You can use handbrake by moving mouse. But when you move mouse, you move camera too. It's annoying, how to fix that without setCameraMatrix?
  4. Maybe in next version.
  5. I added unused list because client gets list from server. And some administrators would add 50 or more radios and you dont want to listen to them. You choose your favourite music type.
  6. https://community.multitheftauto.com/index.php?p= ... ls&id=2585 Old resource
  7. In next version I will add option to listen radio outside the vehicles. edit: added
  8. Hello. Finally I finished my car radio system. You can listen internet radios and GTA radios. It's dynamic so Admin can remove or add GTA stations (xml file) and easy add new internet radios (I added some 2). No integrating into lua script. Also client can choose which stations will listen to. Text on top of the screen is animated. All in simply GUI. So navigation is pretty easy. Screenshots: Video: Download: https://community.multitheftauto.com/index.php?p= ... ls&id=2770 version 1.1: Added setting to meta.xml which let you listen radio without being in vehicle.
  9. H5N1

    Radio streaming

    http://www16.speedyshare.com/files/3006 ... ullaby.mp3 try this url.
  10. H5N1

    Radio streaming

    Additionaly, you dont have to add URL into meta.xml. playSound ("http://www.video2mp3.net/load/YouTube/hTWKbfoikeg/1e76a5544a094fc9e5d4c3e5f20921f0/") - smeels like teen spirit. Try this.
  11. H5N1

    Radio streaming

    It's possible but you need direct url, not url to website.
  12. My script (https://community.multitheftauto.com/index.php?p= ... ls&id=2585) use it, so you can look at code and learn how to synchronize it.
  13. H5N1

    Crash MTA 1.1

    I have many c++ runtime errors too. I have newest DX, no d3d9.dll. My PC: -Core i7 920 -Radeon 4870 -Windows 7 x64 SP1 I have crashes on my local server and on other servers. Sometime sI even cant join to the server. I dont have any shaders scripts on my local server.
  14. Try to add it clientside. If it works, make something like this: server: triggerClientEvent ("onImageAddToScoreboard", getRootElement(), player, imagepath) client: function ... (player, imagepath) guiCreateStaticImage (..., path) setElementData (player, "pic", image) end addEvent ("onImageAddToScoreboard", true) addEventHandler ("onImageAddToScoreboard", getRootElement(), function) Server triggers event to ALL clients, and clients create image and then set it to the scoreboard. But im still not sure, that will work.
  15. try setElementData (player, "pic", image) where image = guiCreateStaticImage (...). But I'm not sure, that will work.
  16. No errors. But I suggest to add auto-volume for voice. Everybody is in different distance beetwen mic, also volume is different.
  17. http://www.speedyshare.com/files/29704581/dumps.rar C++ runtime error while spawning or playing. Cant send wm copy data while connecting, sometimes while playing. I wasnt on default spawn. Mostly I was ridin on nrg500 alone.
  18. Hello. Yesterday I got idea for car reflection script, to replace reflecting texture for dxCreateScreenSource. It works but this variable cant be local, cuz I must update it. Next I made water reflection with screen source and I got bug. Materials are not only for lua script, but for all resources. So when I turned off car reflections, water script got error, because it couldn't find material (destroyed in another lua script).
  19. https://wiki.multitheftauto.com/wiki/Weapon - model ID.
  20. Yea, dxDrawPolygon would be better. Another example: 3D objects in GTA world using getScreenFromWorldPosition. Actually this idea is possible, but it's not effective. Script draws polygon by 1px x 1px rectangles (dxDrawRectangle). And game is very slow.
  21. Hi. I suggest to add 6 new optional arguments into dxDrawRectangle. Now we use XY position of left top corner and rectangle size. My propositions point is to add arguments - left bottom corner XY pos, right top corner XY and right bottom corner XY. This will allow to make 3D illusion. For example. It can be use to create 3D menu ( http://extreme.pcgameshardware.de/attac ... _wm_sh.jpg ).
  22. H5N1

    Image rendering

    it works! Thank you. Ps: images are not resized.
  23. H5N1

    Image rendering

    Im making speedometer to my edited race gamemode. First I designed it in photoshop and then scripted it into mta. But imo it looks awful. But only in mta! I dont understand why images in MTA are blured. http://i51.tinypic.com/4qsilv.png - photoshop design http://i52.tinypic.com/f4npqv.jpg - MTA Only background for speed (number) and gear looks okey because they are rendered by dxDrawRectangle... PS: I use dx functions to draw images.
  24. Thx, I will test it. Omg, its crazy o0. When I turn off GM and again ON I dont have gravity! client local playersWithCollisions = {} local ghostState = true local localPlayer = getLocalPlayer() function toogleGhost () if ghostState == true then -- wlaczamy kolizje ghostState = false triggerServerEvent ("onGhostStateChange", localPlayer, false) elseif ghostState == false then -- wylaczamy kolizje. ghostState = true triggerServerEvent ("onGhostStateChange", localPlayer, true) local players = getElementsByType ("player") for k,v in ipairs(players) do local veh = getPedOccupiedVehicle (v) setElementAlpha (veh, 120) setElementAlpha (v, 120) --setElementCollisionsEnabled (v, false) --setElementCollisionsEnabled (veh, false) if setElementCollidableWith (localPlayer, veh, false) then outputChatBox ("nie bedzie kolidowac") end setElementCollidableWith (localPlayer, v, false) end end end addCommandHandler ("ghost", toogleGhost) bindKey ("F3", "up", "ghost") function onGMChange ( playersTable, playerWithoutGM, state ) if ghostState == false then playersWithCollisions = playersTable if state == true then local veh = getPedOccupiedVehicle (playerWithoutGM) setElementAlpha (veh, 120) setElementAlpha (playerWithoutGM, 120) --setElementCollisionsEnabled (veh, false) --setElementCollisionsEnabled (playerWithoutGM, false) if setElementCollidableWith (localPlayer, veh, false) then outputChatBox ("nie bedzie kolidowac") end setElementCollidableWith (localPlayer, playerWithoutGM, false) elseif state == false then for k,v in ipairs(playersTable) do local veh = getPedOccupiedVehicle (v) setElementAlpha (veh, 255) setElementAlpha (v, 255) --setElementCollisionsEnabled (veh, true) --setElementCollisionsEnabled (v, true) if setElementCollidableWith (localPlayer, veh, true) then outputChatBox ("bedzie kolidowac") end setElementCollidableWith (localPlayer, v, true) end end end end addEvent( "onGhostStateChange", true ) addEventHandler( "onGhostStateChange", getRootElement(), onGMChange ) server local playersWithCollisions = {} function onGMChange ( state ) if state == true then for k,v in ipairs (playersWithCollisions) do if isElement(v) then if v == source then table.remove (playersWithCollisions, k) end else table.remove (playersWithCollisions, k) end end triggerClientEvent ( "onGhostStateChange", getRootElement(), playersWithCollisions, source ) end if state == false then table.insert (playersWithCollisions, 1, source) triggerClientEvent ( "onGhostStateChange", getRootElement(), playersWithCollisions, source, state ) end end addEvent( "onGhostStateChange", true ) addEventHandler( "onGhostStateChange", getRootElement(), onGMChange ) edit - fixed. But collisions still doesnt work. My vehicle alpha changes but collisions not. I dont have errors.
×
×
  • Create New...