Jump to content
Mr. Green Gaming

NTS Green


AfuSensi

Recommended Posts

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>(...)
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...