Forum

> > CS2D > Scripts > MP3 system
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch MP3 system

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt MP3 system

Xlucam14X
User Off Offline

Zitieren
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.

alt Re: MP3 system

DC
Admin Off Offline

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

alt Re: MP3 system

Jynxxx
User Off Offline

Zitieren
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
1× editiert, zuletzt 21.12.11 18:18:56

alt Re: MP3 system

Xlucam14X
User Off Offline

Zitieren
user Jynxxx hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht