[REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin/Filterscript
#1

Finally, the long awaited project based on the idea of hansen111, Sound Unlimited, is now available!

Incase you have missed the discussion over this, this plugin and client combination allows the use of custom audio tracks for your scripts.

Features To Add
-Ability to Control Volume Via Script.
-Multi-Track Audio.


Updates
1.1 - Initial Release
1.2 - Security Updates [Highly Suggested]

Installation Instructions
1. Load the plugin.
2. Load the default script.
3. Run the client.
4. Connect to the ScriptPlayer Port. NOTE: THIS IS NOT THE SAMP SERVER PORT.
5. Join Server.
6. You should hear the GTA 3 Intro music while choosing your skin.

Use this FS as reference to adding audio in your own scripts.

OS Compatability
Client: Windows
Server: Debian, CentOS, Ubuntu, Windows
Linux versions should not have to be recompiled to work.

File Compatability
ScriptPlayer is WMA, WAV, MP3 and OGG compatible for local files. ScriptPlayer also allows the use of files remotely, as long as it works with Windows Media Player.

Functions
SPPlayForPlayer(playerid,URL[]) - This will play the audio clip URL for playerid.

SPPlayForAll(URL[]) - This will play the audio clip URL for everyone.

SPStopForPlayer(playerid) - This will stop any playing clips for playerid.

SPStopForAll() - This will stop any playing clips for everyone.

SPSync(playerid,playername[]) - This is mandatory when a player connects, to synchronize them to their connection with the client.

SPDesync(playerid) - This is mandatory when a player disconnects, to desynchronize their connection with the client.

SPSendInfoToPlayer(playerid,message[]) - This will send message to the playerid's client.

SPSendInfoToAll(playerid,message[]) - This will send message to all of the connected players clients.

SPCreate(port) - This will begin the ScriptPlayer server on port.
NOTE: Do not make this the same port as the SAMP Server, and if your dedicated, make sure that port is not used before you start this on that port.

SPClose() - This will stop the ScriptPlayer server.

SPConnected(playerid) - This is used to see if playerid is using ScriptPlayer, and is connected.

Download

If you just want to hear the sounds on the servers download the Player Package. If you run a server and want to play the sounds, get the Server Package. If your curious how i did this, download the source package. Please read the License Agreement included in these packages.

Player
Server
Source

Ill keep working to make this better.. so post suggestions/problems/complaints.

Credits
JeNkStAX - For helping me a TON with understanding plugins and learning a lot of C/C++.
kaisersouse - For some encouraging words about perseverance.
Lavamike, s0nic, wHoOpEr - For helping me test and debug the issues, and hosting the debug sessions.
Leopard - For helping me test the very first IRC Based version of ScriptPlayer.
Specter - For supplying a Windows Host for testing.
Everyone who helped me keep this project going. Your support is appreciative!


Known Issues
Since the client was made in VB6 it may require VB6 Runtimes or other requirements like mswinsck.ocx for example. They can be found by searching ******, and placed in the system32 directory.
Have fun!
Reply
#2

Where do you put the music?
And can you give an example of playng a sound on a command for example

/playsong
Soundcodehere

Reply
#3

The Client needs to be connected to the plugin, and the audio has to be in the same directory as the client.
Reply
#4

do you load the plugin by puting ScriptPlayer in the Server.CFG file?
Reply
#5

Yes.
Reply
#6

i downloaded VB6 run-time files and installed them in my Windows folder
and i downloaded everything
but when i put ScriptPlayer in the Plugins section in the Server.cfg and run the server, the
plugin fails to load
Reply
#7

Wow! this is great!
Reply
#8

Quote:
Originally Posted by UndertakerDX
i downloaded VB6 run-time files and installed them in my Windows folder
and i downloaded everything
but when i put ScriptPlayer in the Plugins section in the Server.cfg and run the server, the
plugin fails to load
Is your server on a 64 bit machine?
Reply
#9

so your saying if i upload a .mp3 file to a fttp link will it play it?

anyways awesome script
Reply
#10

Quote:
Originally Posted by Pghpunkid
Quote:
Originally Posted by UndertakerDX
i downloaded VB6 run-time files and installed them in my Windows folder
and i downloaded everything
but when i put ScriptPlayer in the Plugins section in the Server.cfg and run the server, the
plugin fails to load
Is your server on a 64 bit machine?
i don't know, how do i check?
but i'm pretty sure its not
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)