SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/06/2019, 06:07 AM   #1
CoCo06
Little Clucker
 
Join Date: Nov 2013
Posts: 9
Reputation: 0
Default Play mp3 for player from a certain point

Hi there!
So I have 2 players, the first one is the driver of a car and the second one is not in the car. I am playing an mp3 for the first player(I uploaded the song in .mp3 format on dropbox and the I used PlayAudioStreamForPlayer to play it). It works fine, but when the second player enters in the car, I want to play the song for him exactly at the point where it is for the driver, NOT FROM THE START.
It is quite obvious that the song starts from 0:00, and I am really curious about how can I make it start from other point than 0:00.
Any solution is good, I dont care about the format of the song, it can be changed to anything else. I guess that I have to stream the song somehow... but how? Any help or exemple is welcome, I am really bad at audio files
If you don't understand my question, feel free to ask me for more explanations...thank you in advance!
CoCo06 is offline   Reply With Quote
Old 15/06/2019, 08:05 AM   #2
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 235
Reputation: 13
Default Re: Play mp3 for player from a certain point

I don't think that's possible. At least not with moving things like vehicles.
If it weren't a vehicle, you could stream for every player and use the position and distance parameters, but doing that with vehicles would play the stream for others at the position a player enters the vehicle.
There is no way to update the position or start streams at a specific point, only from the start.
There might be a plugin for that but I can't tell you how and if they work.
Maybe this one works: https://forum.sa-mp.com/showthread.php?t=82162
Plastikmensch is offline   Reply With Quote
Old 15/06/2019, 12:15 PM   #3
CoCo06
Little Clucker
 
Join Date: Nov 2013
Posts: 9
Reputation: 0
Default Re: Play mp3 for player from a certain point

Isn't there a way to play/stream the song on my website and then use the link to actually play it in-game? Something like a radio station.

About the plugin, does it still require a client installation(after PlayAudioStreamForPlayer function was added) or it works well without asking the player to install anything more than samp?
CoCo06 is offline   Reply With Quote
Old 15/06/2019, 02:42 PM   #4
Koreadars
Big Clucker
 
Join Date: Mar 2019
Location: Czech Republic, Prdelákov.
Posts: 128
Reputation: 6
Default Re: Play mp3 for player from a certain point

You can even upload the song on web and even stream it. Just you have to know how.
Koreadars is offline   Reply With Quote
Old 16/06/2019, 01:24 AM   #5
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 235
Reputation: 13
Default Re: Play mp3 for player from a certain point

Quote:
Originally Posted by CoCo06 View Post
About the plugin, does it still require a client installation(after PlayAudioStreamForPlayer function was added) or it works well without asking the player to install anything more than samp?
I don't know. You have to test it. I found it after a quick search and never used it myself.
Plastikmensch is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
if player is in one of a point deathrunner Scripting Help 3 12/07/2013 12:04 PM
Player to point? _COTTA_ Português/Portuguese 5 10/03/2010 01:11 PM
help player point rs2fun111 Help Archive 1 22/12/2009 09:49 AM
Player Point Help Globe2009 Help Archive 0 29/11/2009 12:09 AM
Player to point Geekzor Help Archive 3 11/08/2009 06:18 PM


All times are GMT. The time now is 02:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.