Forum

> > CS2D > Scripts > MP3 system
Forums overviewCS2D overview Scripts overviewLog in to reply

English MP3 system

5 replies
To the start Previous 1 Next To the start

old MP3 system

Xlucam14X
User Off Offline

Quote
Hello, I'm looking for a script system MP3 for my CS2D where I can choose songs from my pc, if someone gives me a script, if not yet to create one from please.

And good morning to everyone.

Sorry for my bad English.

old Re: MP3 system

DC
Admin Off Offline

Quote
CS2D can't play mp3 files at all! just get an audio player instead like foobar or winamp.

old Re: MP3 system

Jynxxx
User Off Offline

Quote
proly not possible but you can place your songs on the map just convert them to .ogg or .wav files use this site http://media.io/

After you have done that here is the script to play them
you can switch the songs to whatever you like.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
addhook("serveraction", "action")
function action(id,action)
	if action == 2 then
		menu(id,"Song List,Song1,Song2,Song3,Song4,Song5")
	end
end
addhook("menu", "songmenu")
function songmenu(id,title,button)
	if (title=="Song List") then
		if button == 1 then
			parse("sv_sound \"fun/doublekill.wav\"")
		end
		if button == 2 then
			parse("sv_sound \"fun/rampage.wav\"")
		end
		if button == 3 then
			parse("sv_sound \"fun/humiliation.wav\"")
		end
		if button == 4 then
			parse("sv_sound \"fun/monsterkill.wav\"")
		end
		if button == 5 then
			parse("sv_sound \"fun/ultrakill.wav\"")
			end
		end
	end
edited 1×, last 21.12.11 06:18:56 pm

old Re: MP3 system

Xlucam14X
User Off Offline

Quote
user Jynxxx has written
proly not possible but you can place your songs on the map just convert them to .ogg or .wav files use this site http://media.io/

After you have done that here is the script to play them
you can switch the songs to whatever you like.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
addhook("serveraction", "action")
function action(id,action)
	if action == 2 then
		menu(id,"Song List,Song1,Song2,Song3,Song4,Song5")
	end
end
addhook("menu", "songmenu")
function songmenu(id,title,button)
	if (title=="Song List") then
		if button == 1 then
			parse("sv_sound \"fun/doublekill.wav\"")
		end
		if button == 2 then
			parse("sv_sound \"fun/rampage.wav\"")
		end
		if button == 3 then
			parse("sv_sound \"fun/humiliation.wav\"")
		end
		if button == 4 then
			parse("sv_sound \"fun/monsterkill.wav\"")
		end
		if button == 5 then
			parse("sv_sound \"fun/ultrakill.wav\"")
			end
		end
	end


ta
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview