51
News / SERVER IS OPENED!
« Last post by V on February 10, 2012, 06:54:00 am »GUYS SERVER IS OPENED! YOU CAN TEST IT WITH
176.9.192.156:22010.
176.9.192.156:22010.
function ClientStarted ()
setWaterColor( 0 , 229 , 238 ) -- RGB colors
setSkyGradient( 255 , 127 , 36 , 205 , 96 , 144 ) -- 1st RGB colors top sky, 2nd RGB colors bottom sky
end
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), ClientStarted )function startMusic()
setRadioChannel(0)
song = playSound("song.mp3",true)
outputChatBox("Toggle the music on/off with 'm'")
end
function makeRadioStayOff()
setRadioChannel(0)
cancelEvent()
end
function 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)
end
end
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic)
addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff)
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff)
addCommandHandler("music",toggleSong)
bindKey("m","down","music") <file src="song.mp3" type="client" />
<script src="music.lua" type="client" />
we will come with awesome scripts and maps. wait up 



like your style. talk me in game.Love you man!