AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   music stops (https://forums.alliedmods.net/showthread.php?t=27185)

Wolle 04-16-2006 15:42

music stops
 
Why does the connection music stop once the client is put into the server?
I
Code:
client_cmd( id, "mp3 play music.mp3" );
in
Code:
public client_connect( id )
in my test plugin and that's it.

Goshik 04-16-2006 16:07

do you mean when you have joined the music is played and when the other player joins the music stops to you and starts playing to the client who joined :D ?

Wolle 04-16-2006 16:51

No.
I mean the music gets played as soon as client_connect( id ) is called. (which is good)
It stops once you see the motd (like when you're put into the server). Which is bad. At least in my case.
I don't want the music to stop. I want it to go on playing until the id joins some sort of team.

Hawk552 04-16-2006 16:52

I'm not quite sure but I think they run stopsound once they get into the server. I don't think there's a way to block this, I'm pretty sure it's a client side command.

Wolle 04-16-2006 16:53

Quote:

Originally Posted by Hawk552
I'm not quite sure but I think they run stopsound once they get into the server. I don't think there's a way to block this, I'm pretty sure it's a client side command.

Darn, I was afraid someone would say that. :D

Goshik 04-16-2006 16:58

or maybe delete the motd.txt :D

Wolle 04-16-2006 17:01

Quote:

Originally Posted by Goshik
or maybe delete the motd.txt :D

Uhm, what for?

Goshik 04-16-2006 17:03

Quote:

Originally Posted by Wolle
It stops once you see the motd.

So if you don't see the motd, maybe it will don't stop ;) ?

Wolle 04-16-2006 17:04

Quote:

Originally Posted by Goshik
So if you don't see the motd, maybe it will don't stop ;) ?

Hehe, no, thanks but that won't work. :wink:

Hawk552 04-16-2006 17:08

You can try this but I'm about 99% sure it won't work:

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Block Test","1.0","Hawk552")     register_clcmd("stopsound","fnBlock") } public fnBlock(id)     return PLUGIN_HANDLED


All times are GMT -4. The time now is 05:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.