Forum

> > CS2D > Scripts > start game => play music
Forums overviewCS2D overview Scripts overviewLog in to reply

English start game => play music

20 replies
Page
To the start Previous 1 2 Next To the start

old closed start game => play music

SRAN
User Off Offline

Quote
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

old Re: start game => play music

oxytamine
User Off Offline

Quote
Mephiles has written
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

You can do it with triggers in the map editor.

old Re: start game => play music

oxytamine
User Off Offline

Quote
FN_Linkin Park has written
oxytamine he says MAIN MENU.. u cant use lua scripts while in the main menu.

He'd better visit couple of english lessons. Anyway, why doesn't he just turn on music player and play?

old Re: start game => play music

Yates
Reviewer Off Offline

Quote
He just wants music in main menu..
Just play some music on windows media player xP
That's what i do..

old Oh no!

oxytamine
User Off Offline

Quote
Yates has written
He just wants music in main menu..
Just play some music on windows media player xP
That's what i do..

Windows Media Players sucks. Use iTunes. By the way, who uses Windows nowadays? MAC OS X - obviously the best OS.
Ice-cream16 has written
Maybe your music instead of unreasoftware.ogg?

It's only small intro.

old Offtop

oxytamine
User Off Offline

Quote
Yates has written
I don't care if it sucks, mayb your comp is SLowwWw!
But mine isn't works perfect..

I have a laptop.

old Re: start game => play music

DC
Admin Off Offline

Quote
it's not possible.

Lua runs on server only. it doesn't run while being a client or while being in the main menu.

only thing you can do: replace unreasoftware.ogg with a long music file. long because you can't make it loop.

old Re: start game => play music

KimKat
GAME BANNED Off Offline

Quote
I got a quick solution, if you use Windows XP with Service Pack 2. Click the Start button, then click Run... and type in "mplay32" without the quotes. This will open Windows internal media player (no need to download things), then when you have it ready you just click File and Open... then find your song/soundclip then it will automaticly be loaded and play it for you then you could return to CS2D while being in menu, but the bad side with this is that when you join a server the music will still be playing (if that's a good thing or not, is all up to you).

If you run another operating system, then I'm sorry I can't help you. Lol.

old Re: start game => play music

Nem
User Off Offline

Quote
KimKat has written
but the bad side with this is that when you join a server the music will still be playing

Thats why i said about AIMP player, his hotkeys are awesome, for me its ctrl+w(play/pause)q(prev song)e(next song)g(stop song)

old Profit!

oxytamine
User Off Offline

Quote
Mephiles has written
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

1. Learn C#/C++.
2. Decompile CS2D.
3. Hack it and add your music to the main menu.
4. ???
5. PROFIT!

old Re: start game => play music

medeiros
User Off Offline

Quote
oxytamine has written
Mephiles has written
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

1. Learn C#/C++.
2. Decompile CS2D.
3. Hack it and add your music to the main menu.
4. ???
5. PROFIT!

It is unbelievable that most of your replies are constantly referring to hacking.
Keep it to yourself, don't encourage people to do that.

old Re: start game => play music

oxytamine
User Off Offline

Quote
Rodrigo X has written
oxytamine has written
Mephiles has written
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

1. Learn C#/C++.
2. Decompile CS2D.
3. Hack it and add your music to the main menu.
4. ???
5. PROFIT!

It is unbelievable that most of your replies are constantly referring to hacking.
Keep it to yourself, don't encourage people to do that.

You're afraid of situation when every newbie will be able to hack you, aren't you? I just love programming and hacking, of course. I do not encourage people to hack CS2D as it is. For example my post up there was a joke. It's just my sense of humor. Outlook on life like a system administrator.
edited 1×, last 07.01.11 11:00:34 pm

old Re: start game => play music

medeiros
User Off Offline

Quote
oxytamine has written
Rodrigo X has written
oxytamine has written
Mephiles has written
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

1. Learn C#/C++.
2. Decompile CS2D.
3. Hack it and add your music to the main menu.
4. ???
5. PROFIT!

It is unbelievable that most of your replies are constantly referring to hacking.
Keep it to yourself, don't encourage people to do that.

You're afraid of situation when every newbie will be able to hack you, aren't you? I just love programming and hacking, of course. I do not encourage people to hack CS2D as it is. For example my post up there was a joke. It's just my sense of humor. System administrator's outlook on life.

Nah, I'm not scared. I'd hack them first.
But this is Off-Topic and doesn't matter.
More >

old Re: start game => play music

oxytamine
User Off Offline

Quote
Rodrigo X has written
oxytamine has written
Rodrigo X has written
oxytamine has written
Mephiles has written
i want a lua plays a defined music and repeat whenever im in the main menu please give me code and where to put it

1. Learn C#/C++.
2. Decompile CS2D.
3. Hack it and add your music to the main menu.
4. ???
5. PROFIT!

It is unbelievable that most of your replies are constantly referring to hacking.
Keep it to yourself, don't encourage people to do that.

You're afraid of situation when every newbie will be able to hack you, aren't you? I just love programming and hacking, of course. I do not encourage people to hack CS2D as it is. For example my post up there was a joke. It's just my sense of humor. System administrator's outlook on life.

Nah, I'm not scared. I'd hack them first.
But this is Off-Topic and doesn't matter.
More >

I was going to ask you what programming languages do you know, but thanks G-d you posted a spoiler minute later.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview