AfuSensi Posted January 31, 2013 Share Posted January 31, 2013 Made a new map. I hope its good, thanks.NTS-Green.zip Quote Link to comment
hulpje Posted February 2, 2013 Share Posted February 2, 2013 Your script in the map isn't working at all, you can use the script in the beneath spoiler to edit the following:» music» aircolor (first 3 numbers = upper air color (yellow atm), last 3 numbers = down air color (purple atm).» watercolor (first 3 numbers = watercolor (purple atm), last number is visibility (0= invisible, 255=visible)» clouds (if you want clouds disabled use this)(This is ur client.lua)--music--function startMusic() setRadioChannel(0) song = playSound("song.mp3",true) outputChatBox("Toggle music on/off using M")endfunction makeRadioStayOff() setRadioChannel(0) cancelEvent()endfunction toggleSong() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) endendaddEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic)addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff)addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff)addCommandHandler("mkmap1_racetheme",toggleSong)bindKey("m","down","mkmap1_racetheme")--aircolor--addEventHandler("onClientResourceStart", getRootElement(),function() setSkyGradient(255, 216, 0, 222, 0, 255)end) --watercolor-- red,green,blue,alpha=222,0,255,255 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) end)--clouds-- function disableClouds () setCloudsEnabled ( false ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), disableClouds ) and this in the META.XML:<meta> <script src="client.lua" type="client" /> <file src="song.mp3" /> <info gamemodes="nts" type="map" name="NTS Green" author="TAGreenLabel" version="1" description="A Bit slowed down. Why? Because i got high!"></info> <map src="NTS-Green.map" dimension="0"></map> <settings>(...) Quote Link to comment
AfuSensi Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks Hulpje! Here is my updated map:NTS-Green.zip Quote Link to comment
AfuSensi Posted February 5, 2013 Author Share Posted February 5, 2013 Sorry, i forgot to update the script lol.New version:NTS-Green.zip Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.