Jump to content

dazzlepoint

Members
  • Posts

    22
  • Joined

  • Last visited

Details

  • Location
    belgium
  • Interests
    scripting

dazzlepoint's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. yes i want it for server and not for client, works client on server then ?
  2. is there a server side ? is this only for client ?
  3. I must add this links in the meta.xml file ? and how do you do that ?
  4. ik wil graag dit streamen "http://d.liveatc.net/kjfk_gnd" als ik in een vliegtuig de radio afzet ik heb een script van een andere topic gevonden maar die werkt bij mij niet, moet ik nog iets veranderen aan de meta.xml ? local soundLocation = 'http://d.liveatc.net/kjfk_twr' local soundMessage = 'Connecting to air traffic control (jka), please stand by.' addEventHandler('onClientResourceStart', getRootElement(), function(startedRes) if startedRes == getThisResource() then if isPedInVehicle(localPlayer) and getVehicleType(getPedOccupiedVehicle(localPlayer)) == 'Plane' then if getRadioChannel() ~= 0 then soundElement = playSound(soundLocation) outputChatBox(soundMessage) end end end end ) addEventHandler('onClientPlayerRadioSwitch', getRootElement(), function(radioID) if isPedInVehicle(localPlayer) and getVehicleType(getPedOccupiedVehicle(localPlayer)) == 'Plane' then if radioID ~= 0 then cancelEvent() soundElement = playSound(soundLocation) outputChatBox(soundMessage) elseif soundElement then setRadioChannel(0) stopSound(soundElement) soundElement = nil end end end ) addEventHandler('onClientPlayerVehicleEnter', getRootElement(), function(theVehicle, theSeat) if getVehicleType(theVehicle) == 'Plane' then if getRadioChannel() ~= 0 then soundElement = playSound(soundLocation) outputChatBox(soundMessage) end end end ) addEventHandler('onClientPlayerVehicleExit', getRootElement(), function(theVehicle, theSeat) if getVehicleType(theVehicle) == 'Plane' then if soundElement then setRadioChannel(0) stopSound(soundElement) soundElement = nil end end end )
  5. do i have to putt the link in the meta fille ? how i can do it ? like this ? but it's not working "YourName" />
  6. i want to stream "http://d.liveatc.net/kjfk_twr" when you putt radio off in an plane, can you help me ?
  7. when i try this i can't hear anything, can you help me ? function startMySound() local vehicle = getPedOccupiedVehicle( getLocalPlayer() ) local id = getVehicleID(vehicle) if (id== 513 ) then setRadioChannel(0) sound = playSound( "http://d.liveatc.net/kjfk_twr", true ) end if (id== 429 ) then setRadioChannel(0) sound = playSound( "http://212.45.104.34:8042/listen.pls", true ) end end addEventHandler("onClientPlayerVehicleEnter",getRootElement(),startMySound) function stopMySound() stopSound( sound ) end addCommandHandler ( "stopsound", stopMySound ) addEventHandler("onClientVehicleExplode",getRootElement(),stopMySound)
  8. unexepted symbol near ' [ ' Copy my code again.
  9. mayby another person on another computer can test it, when i test it i use 2 accounts on my computer mayby there is the problem
  10. now there spawn two busses and there is an error "attempt to call a boolean value" and every player can also see the markers THANX
  11. ok yes when is use the script and i load and a random player starts busjob then every body can see the marker. THANKS is there a bug in the account system ? We can't do anything with this information.
  12. hi is this why we make mistakes it's for server THANKS
×
×
  • Create New...