Start and Stop Playing Mp3
is it possible to make mp3 which playing on client to stop when they disconnect? cause it seems that once you exec client cmd to play the mp3 file, it keeps playing on client even after players quit the server..
|
Re: Start and Stop Playing Mp3
You cant execute any command on player, when he's diconnected from server.
|
Re: Start and Stop Playing Mp3
Quote:
Code:
|
Re: Start and Stop Playing Mp3
@up - no!
client_disconnect is called when player already left server. |
Re: Start and Stop Playing Mp3
Quote:
(like always, someone is going to -karma me if I'm wrong... look at my sig) If I'm wrong, you can hook teaminfo and if the team parameter is "UNASSIGNED", then the player disconnected(-Exolent). |
Re: Start and Stop Playing Mp3
Sn!ff3r is probably right about that but im actually looking for workaround to make the mp3 stop playing when they leave. Maybe like playing only the first 10 secs of the mp3 file, if players still in server, then play another 10 secs parts..
|
Re: Start and Stop Playing Mp3
Quote:
This is post forward. |
Re: Start and Stop Playing Mp3
Quote:
Code:
|
Re: Start and Stop Playing Mp3
@hleV: Did you read the comment in that code?
"just an example". :) @Sniffer: Thanks. |
Re: Start and Stop Playing Mp3
Why couldn't you switch the words so it would be a correct example?
|
| All times are GMT -4. The time now is 01:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.