I'm wondering if it would be possible to make a script where when you join a Server it plays a song, It would be great fun to see if it works, I'm just not sure if its Possible. The Track i would use is only 1.04mins so it wouldn't be too hefty a DL
Here's what I have so far, It wont play when I connect though so I'm not sure what to do
function onPlayerSpawn ( theSpawnpoint, theTeam )
local sound = playSound("sound/intro.mp3",[ bool looped = false ] )
setSoundVolume(sound, 0.5)
end
addEventHandler ( "onPlayerSpawn", getRootElement(), onPlayerSpawn )
<meta>
<info author="Spike" version="1.0.0" type="script"
description="" />
<script src="spwnsound.lua" type="client"/>
<file src="sound/intro.mp3" />
</meta>
Can anyone Help please?