Jump to content

BlackS

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by BlackS

  1. BlackS

    Music in area

    Calm down arran, He's new and where suppose to help him Nah I understand, Smacked my head to, Stupid fault. I guess I've got to add it this way? PS: Glad there is a MTA forum for help function soundStart() sound = playSound3D("music.mp3", 253.234375, -1784.283203125, 4.2362642288208, true) setSoundMinDistance(sound, tonumber(param)) setSoundMaxDistance(sound, tonumber(param)) if sound then outputDebugString("3D Created successful", 3) else outputDebugString("Error creating 3D", 1) end end addEventHandler("onClientResourceStart", resourceRoot, soundStart)
  2. BlackS

    Music in area

    This is what I've got now: I've added the 2 new parts. I've heard a little sound and I think it will working, need to check the soundfile first. function soundStart() sound = playSound3D("music.mp3", 253.234375, -1784.283203125, 4.2362642288208, true) if sound then outputDebugString("3D Created successful", 3) else outputDebugString("Error creating 3D", 1) end end addEventHandler("onClientResourceStart", resourceRoot, soundStart) local sound = playSound3D("music.mp3", 253.234375, -1784.283203125, 4.2362642288208, true) function distanceFunc(command, param) setSoundMinDistance(sound, (10)(param)) end addCommandHandler("setdistance", distanceFunc) local sound = playSound3D("music.mp3", 253.234375, -1784.283203125, 4.2362642288208, true) function maxdistanceFunc(command, param) setSoundMaxDistance(sound, (50)(param)) end addCommandHandler("setmaxdistance", maxdistanceFunc) But my next question: Will this work in MTA 1.1? I couldn't start this 1 in the local server: It contain illegal charachters function soundStart() sound = playSound3D("myradio.listen2myradio.com", 253.234375, -1784.283203125, 4.2362642288208, true) if sound then outputDebugString("3D Created successful", 3) else outputDebugString("Error creating 3D", 1) end end addEventHandler("onClientResourceStart", resourceRoot, soundStart) local sound = playSound3D("myradio.listen2myradio.com", 253.234375, -1784.283203125, 4.2362642288208, true) function distanceFunc(command, param) setSoundMinDistance(sound, (10)(param)) end addCommandHandler("setdistance", distanceFunc) local sound = playSound3D("myradio.listen2myradio.com", 253.234375, -1784.283203125, 4.2362642288208, true) function maxdistanceFunc(command, param) setSoundMaxDistance(sound, (50)(param)) end addCommandHandler("setmaxdistance", maxdistanceFunc)
  3. BlackS

    Music in area

    None can help me out with this 1?
  4. BlackS

    Music in area

    Decided to make it a stream script. I've added my radio channel but it says there are illegal characters on it? Its a listen2myradio client so I copied the url. its like: radio.listen2myradio.com
  5. BlackS

    Music in area

    Oh okay that way, It was named: Untitled 1.lua Second: I'm using a listen2myradio client. URLs are like myradio.listen2myradio.com those works also? EDIT: Renamed and tested, Still nothing.
  6. BlackS

    Music in area

    Still didn't worked, I don't know it! Did I selected the correct area? and can I upload this 1 also in MTA 1.1?
  7. BlackS

    Music in area

    Thanks for the fast response! META: <?xml version="1.0"?> -type="script" version="1" author="BlackS"/> "music.mp3"/>
  8. BlackS

    Music in area

    Hello all, I'm trying to make a script to play music when you enter the beach area, but It wont play any music. gRoot = getRootElement() gResRoot = getResourceRootElement(getThisResource()) x = 253.234375 y = -1784.283203125 z = 4.2362642288208 function soundStart() if x and y and z then sound = playSound3D("music.mp3", x, y, z, true) if sound then outputDebugString("3D Created successful", 3) else outputDebugString("Error creating 3D", 1) end end end addEventHandler("onClientResourceStart", gResRoot, soundStart) function stopSound() if sound then destroyElement(sound) outputDebugString("3D destroyed.", 3) else return end end addEventHandler("onClientResourceStop", gResRoot, stopSound) Second: I've got a shoutcast radio station, Am I able to put it also at that area? In MTA 1.1 is that possible I heard
  9. It was amazing!, You saw in 10 seconds how 100 players joined. It was instantly full!. First of all everyone started to spawn direct weapons and shoot each other, but later Weapons were disabled. Next time disable the joinquit messages. it was real irritated to see 1000 of them in 1 second
×
×
  • Create New...