25.06.2009, 11:50
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!
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!