1
Maps / Re: [DM]Kane Vol8 - I Can't Stop
« on: February 17, 2012, 04:12:13 am »
very good
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
otomesajsure = 100000 -- message time
local otomesaj ={
{"message1"},
{"message2"},
{"message1"},
{"message2"},
}
function otomesajgonder ()
local rndm = math.random( 1, #otomesaj)
outputChatBox (otomesaj[rndm] [1], getRootElement(), 255, 255, 255 ,true)
end
setTimer(otomesajgonder, otomesajsure, 0)
test
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
V
Deiter
Ford
hans
NunoM
MarioM
GoncaloM
Ethanol
Numb
Kane
Daimon