Jump to content

dazzlepoint

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by dazzlepoint

  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
  13. i think we have to close this topic ( on my server it's not working ) everyone did his best but if you have an working example post it ... THANX
  14. do i change things in this script, "no" then it's not working maybe we have to change the hole script ps i want that nobody can see the marker of another player THANX
  15. do you mean this ? addEventHandler("onMarkerHit",createMarker(2121, 1402,10,"cylinder",2,0,255,0), function ( player ) if getElementType ( player ) == "player" then local bus = createVehicle ( 431, 2107, 1395, 10 ) warpPedIntoVehicle ( player, bus ) outputChatBox ( "you can earn money by driving to the markers" ) local myMarker = createMarker ( 2038.26, 1514.01, 9, "cylinder", 1.5, 255, 255, 0, 170 ) createBlip ( 2038.26, 1514.01, 13, 41, 0, 0, 0, 255, 0, 99999, player) --name = getPlayerName ( source ) visibleTo ( myMarker, root, false ) visibleTo ( myMarker, player, true ) end end,false)
  16. hi, its a very good script but every player can see the marker, is the login system not good ? is this for client ? THANX
  17. what did i wrong i would make a marker and blip visible for the player that starts the busjob. every one can see the blips and markers local marker = createMarker(2121, 1402,10,"cylinder",2,0,255,0) addEventHandler("onMarkerHit",marker, function ( player ) if getElementType ( player ) == "player" then bus = createVehicle ( 431, 2107, 1395, 10 ) warpPedIntoVehicle ( player, bus ) outputChatBox ( "you can earn money by driving to the markers" ) myMarker = createMarker ( 2038.26, 1514.01, 9, "cylinder", 1.5, 255, 255, 0, 170 ) blip1 = createBlip ( 2038.26, 1514.01, 13, 41, 0, 0, 0, 255 ) name = getPlayerName ( source ) setElementVisibleTo ( myMarker, getRootElement ( ), false ) setElementVisibleTo ( myMarker, source, true ) end end,false)
  18. hi #Mr.Pres[T]ege you are really PRO but is this also for the server side
  19. what did i wrong ? can you help me ? marker = createMarker(2121, 1402, 10,"cylinder",2,0,255,0) addEventHandler("onClientMarkerHit",marker, function() local vh = getPedOccupiedVehicle ( source ) vehicles = 4, 3, 1 nm = tonumber ( math.random( #vehicles ) ) setElementModel ( vh, nm ) end)
×
×
  • Create New...