Jump to content

hulpje

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by hulpje

  1. Can't seem to edit my post, but here is version with some fixes (deleted previous) https://www.dropbox.com/s/ewo67zmjnl2ixo7/IWFMD3.zip?dl=0 Screenshots:
  2. Download link for I wanna find my destiny 3: Good luck with the challenge https://www.dropbox.com/s/yi7u2blsassmg27/IWFMD3.7z?dl=0
  3. Fixed the problem by /stop freeroam in the map editor. Thank you anyway.
  4. Hi, i'm creating a race map and just want to create a little trolling script where people teleport somewhere else when they write "delete map" in the chat. The problem: I usually work in the map editor / local server and if I write "delete map" I get a debugmessage ("what the :O"). If I write "delete map" in a hosted server of a friend it does work and teleport me. My questions: why the script works different and can I make it work in the map editor somehow? function memestars(text, element) if string.match(text, "delete map") then if isElement(element) and getElementType(element) == 'player' then bigbitch = getPedOccupiedVehicle(element) setElementPosition(bigbitch, 5202, 256, 87) else iprint("wat the :O: ", text, element) end end end addEventHandler("onChatMessage", root, memestars)
  5. Thanks, I had this problem with all my maps due exporting .dff's wrong (Benox showed me what settings I frelled up). This could be a nice backdoor fix without having to change anything in the map itself.
  6. download https://www.dropbox.com/s/ix7d23uycf0ih ... 2.rar?dl=0 It are 2 challenging obstacle courses with moving objects you have to pass, won't post a preview video because playing (and trying to finish it) is probaly more fun without knowing the map. ~ duration if you don't fail is around 3 minutes ~ average duration on first try is probaly over 15 minutes (unless you cheat your way to the finish ) one preview screenshot
  7. you make model in 3ds max and texture it with pictures with M button (and make "GTA Material" --> "import your own pic"). You only export .dff and .col file using KAM script. You have to create the .txd file with "txdworkshop" and give the pictures in "txdworkshop" tesame name as attached to your .dff (which is the name of the file). Then use script to import your .dff, .col and .txd over an excisting model. done!
  8. Here an example map with an animated custom model: https://mega.co.nz/#!gtgyGYTK!myxYYBMmk ... ECUP9QE5Gg
  9. I think you need to convert it to a 3DS max model. Then export 3DS max model to .dff en .col using Kam's script.
  10. probaly it loads several .txd / images (with alpha channel) in a row creating some kind of moving texture. To make this work you need some kind of script, that load all those images in a row. I put the scripts from some maps and a resource into 1 folder, you can look into the scripts and see if you can figure it out. All maps got moving textures. I remove map and meta file because idk if author want to share. https://mega.co.nz/#!Bh41UCia!QMwrIRBwB ... A30cgW-70g
  11. with gta sa material I watched your tutorial I think you mean this?: How can I make a .txd out of my texture? I try use alpha but all goes invisible. I dont understand what you mean
  12. Im trying to make a custom object with a transparant texture. I have seen player and water models being transparant so I thought it would be possible with custom models as well. so the goal is have an object like this into the editor: I tried several things but they both failed in the end: 1» create transparant .png in photoshop and use it as model in 3DS (original texture and transparant textures uploaded here: http://speedy.sh/xYPAF/glass.zip) 2» change opacity in 3DS of material attached to .dff (tried this with original and transparant texture) converting my .png into a .txd I tried compressed option as usal but also tried to use alpha (which turns in some strange black box). If someone can help me out I'd be very happy
  13. oh, gravity was 0 by default in my MTA editor somehow. reuploaded like 15 maps now because they all had same bug lol
  14. The map is pretty close to the beach - you can even see it at some point, also the same bug occurs in maps that are build within san andreas itself. Some people watched into map files but nothing special either... and I suppose it can't be something with the server because on default settings it even happens. The bug doesn't occur in the MTA map editor, it only happens on servers...
  15. hello I have the following problems with some of my maps: whenever the race start some people - specially the late joiners - all leviate. http://imageshack.us/photo/my-images/832/flybug.png/ This picture is on a homehost server but on one of the bigger race servers same problem, and only my maps. this also occurs in maps w/o custom .lua and scripts anyone know a fix for this?
  16. im not scripter but in races I'd like to be able to switch instantly between bumper camera and middle (3th person). I couldn't find any commands to do it in-game so maybe someone knows commands for it? Otherwise maybe possible with script? I tried a bit myself but every line I write instantly destroys a working script so I gave up. so I wish to be able to toggle between those 2 modes: setCameraViewMode(0) setCameraViewMode(2) bindKey("v","down","togglecamera") I though this are the client thingies I need but I dont know... and then togglecamera refer to the function or something?
  17. thanks qais, I indeed can change the following numbers (×) and it will speedboost me without changing my direction. Multiplier = × speedcnx = (speedx*×) speedcny = (speedy*×) everything works fine in my map editor now, so I guess my problem is solved ^^ @ Al3grab, idk im just using qais script, that one works fine now ^^
  18. Thank you qais, I probaly did something wrong because it (somehow) worked this time ^^ But I have one more problem now, When I tried the script in my first post it speedboosted me (first corona) the way I was driving (I didn't had to do anything with setElementVelocity). Now if I dont set a X or Y or Z the corona simply isn't doing anything. Which means I had to set X at setElementVelocity to make it work, but lets say if I want to drive trough the speedboost from another angle it will totally push me the wrong way. Is there a way to change it so it speedboosts me in the direction I drive? (The script that make my car bounce works fine) I add video so you can see what I mean: this is the script (thank you qais) for the speedboost at first corona now: local unique = md5(math.random(1,999)..'smama') function start() Speedboost = { createMarker (-3004,-841,0.11,"corona",10,255,0,0,105), } for i,v in pairs(Speedboost) do setElementData(v, unique, true, false) end end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), start ) Multiplier = 5.0 function SpeedBoost (player) if player ~= getLocalPlayer() then return end if not getElementData(source, unique) then return end if getElementType(player) == "player" then if isPedInVehicle ( player ) then local car = getPedOccupiedVehicle(player) if getVehicleController(car) == player then speedx, speedy, speedz = getElementVelocity ( car ) speedcnx = (speedx*Multiplier) speedcny = (speedy*Multiplier) speedcnz = (speedz*Multiplier) setElementVelocity ( car, speedcnx-1.2,speedcny,speedcnz) fixVehicle(car) playSoundFrontEnd(46) end end end end addEventHandler ( "onClientMarkerHit", getResourceRootElement(getThisResource()), Speed
  19. I tried some more things but failed I think the easiest thing is to make the script react on a specific marker, so add something like "local myMarker4 =" and also add that specific marker in the line of the event handler. I tried adding it myself, but either the corona's became invisible or (and) stopped functioning. If someone could help how to properly add markers in one of the scrips in the first post I would really be grateful >:
  20. pls someone help Dev's comments makes it look very easy, but If someone could give me a little push further I'll be happier then mario after safing the princess.
  21. thanks, but I don't really understand what to do now yet 1/2- change function "Speedboost" for something I make up (like bounce)? 3 - I don't really understand what I have to do here, is this with marker1 in the location and adding it in OnClientMarkerHit?
  22. Im not good with scripts but im using some scripts other people made (thank you) for my (race) maps. Now I have found a script on this forum https://forum.multitheftauto.com/viewtopic.php?f=91&t=30975 that exactly does what I want: Speedboost: function start() Speedboost = { createMarker (-3004,-841,0.11,"corona",10,255,0,0,105), } end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), start ) Multiplier = 5.0 function SpeedBoost (player) if player ~= getLocalPlayer() then return end if getElementType(player) == "player" then if isPedInVehicle ( player ) then local car = getPedOccupiedVehicle(player) if getVehicleController(car) == player then speedx, speedy, speedz = getElementVelocity ( car ) speedcnx = (speedx*Multiplier) speedcny = (speedy*Multiplier) speedcnz = (speedz*Multiplier) setElementVelocity ( car, speedcnx, speedcny,speedcnz ) fixVehicle(car) playSoundFrontEnd(46) end end end end addEventHandler ( "onClientMarkerHit", getResourceRootElement(getThisResource()), SpeedBoost ) And give my car a little bounce (changing Z) (same script actually:) function start() Speedboost = { createMarker (-3374,-837,19.5,"corona",10,255,0,0,105), } end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), start ) Multiplier = 1.5 function SpeedBoost (player) if player ~= getLocalPlayer() then return end if getElementType(player) == "player" then if isPedInVehicle ( player ) then local car = getPedOccupiedVehicle(player) if getVehicleController(car) == player then speedx, speedy, speedz = getElementVelocity ( car ) speedcnx = (speedx*Multiplier) speedcny = (speedy*Multiplier) speedcnz = (speedz*Multiplier) setElementVelocity ( car, speedcnx, speedcny,speedcnz+0.2 ) fixVehicle(car) playSoundFrontEnd(46) end end end end addEventHandler ( "onClientMarkerHit", getResourceRootElement(getThisResource()), SpeedBoost ) problem is both scripts work fine stand-alone but get confused with each other when I place them together in a map. I tried search for some other scripts but they don't work or bounce my car is a preset X,Y,Z (while I want it to bounce to the direction I drive). I searched on forum and tried to add some marker1, marker2 and stuff, also tried to add something with "If == then" but I just can't figure it out. If someone could help me with making both scripts work in 1 map would be really awsome.
×
×
  • Create New...