Raised This Month: $ Target: $400
 0% 

music stops


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 04-16-2006 , 15:42   music stops
Reply With Quote #1

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.
__________________
Become part of games development!
http://www.games-academy.de
Wolle is offline
Send a message via AIM to Wolle
Goshik
Senior Member
Join Date: Apr 2006
Location: Vilnius
Old 04-16-2006 , 16:07  
Reply With Quote #2

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 ?
__________________
Check out my rock band Moondust!
http://www.youtube.com/moondustband
Goshik is offline
Send a message via Skype™ to Goshik
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 04-16-2006 , 16:51  
Reply With Quote #3

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.
__________________
Become part of games development!
http://www.games-academy.de
Wolle is offline
Send a message via AIM to Wolle
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-16-2006 , 16:52  
Reply With Quote #4

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.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 04-16-2006 , 16:53  
Reply With Quote #5

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.
__________________
Become part of games development!
http://www.games-academy.de
Wolle is offline
Send a message via AIM to Wolle
Goshik
Senior Member
Join Date: Apr 2006
Location: Vilnius
Old 04-16-2006 , 16:58  
Reply With Quote #6

or maybe delete the motd.txt
__________________
Check out my rock band Moondust!
http://www.youtube.com/moondustband
Goshik is offline
Send a message via Skype™ to Goshik
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 04-16-2006 , 17:01  
Reply With Quote #7

Quote:
Originally Posted by Goshik
or maybe delete the motd.txt
Uhm, what for?
__________________
Become part of games development!
http://www.games-academy.de
Wolle is offline
Send a message via AIM to Wolle
Goshik
Senior Member
Join Date: Apr 2006
Location: Vilnius
Old 04-16-2006 , 17:03  
Reply With Quote #8

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 ;) ?
__________________
Check out my rock band Moondust!
http://www.youtube.com/moondustband
Goshik is offline
Send a message via Skype™ to Goshik
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 04-16-2006 , 17:04  
Reply With Quote #9

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.
__________________
Become part of games development!
http://www.games-academy.de
Wolle is offline
Send a message via AIM to Wolle
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-16-2006 , 17:08  
Reply With Quote #10

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
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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