[Plugin] [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd]
#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.


Nov. 24th 2009 - No Longer Supported - Links Died, No Time. If you wish to modify the source and re-release, you can.


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


Messages In This Thread
[REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 23.06.2009, 05:47
Re: [REL] ScriptPlayer 1.1 by Pghpunkid - by HydraX - 23.06.2009, 05:52
Re: [REL] ScriptPlayer 1.1 by Pghpunkid - by Grim_ - 23.06.2009, 05:53
Re: [REL] ScriptPlayer 1.1 by Pghpunkid - by Gappy - 23.06.2009, 06:05
Re: [REL] ScriptPlayer 1.1 by Pghpunkid - by [AV]Specter - 23.06.2009, 06:40
Re: [REL] ScriptPlayer 1.1 by Pghpunkid - by Pghpunkid - 23.06.2009, 08:12
Re: [REL] ScriptPlayer 1.2 by Pghpunkid [Update June 23rd] - by watkijkje - 23.06.2009, 10:12
Re: [REL] ScriptPlayer 1.2 by Pghpunkid [Update June 23rd] - by Correlli - 23.06.2009, 10:14
Re: [REL] ScriptPlayer 1.2 by Pghpunkid [Update June 23rd] - by Pghpunkid - 23.06.2009, 10:45
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Incognito - 23.06.2009, 12:37
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by watkijkje - 23.06.2009, 13:00
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by KeyWay - 23.06.2009, 13:43
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by whooper - 23.06.2009, 13:48
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by KeyWay - 23.06.2009, 14:07
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by joemomma53 - 23.06.2009, 14:10
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by cyber_punk - 23.06.2009, 15:15
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by lavamike - 23.06.2009, 16:14
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by [VGS]Protioso - 23.06.2009, 19:55
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by NeRoSiS - 23.06.2009, 19:57
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by s0nic - 23.06.2009, 20:48
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 23.06.2009, 23:10
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Donuts - 23.06.2009, 23:59
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by DMSOrg - 24.06.2009, 00:14
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by sant - 24.06.2009, 01:37
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Amit - 24.06.2009, 02:14
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 24.06.2009, 02:31
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by SpiderPork - 24.06.2009, 06:13
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 24.06.2009, 06:19
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by NeRoSiS - 24.06.2009, 06:25
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by toxxxic - 24.06.2009, 08:51
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by toxxxic - 24.06.2009, 08:56
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 24.06.2009, 10:19
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by propilot - 24.06.2009, 11:07
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by boelie - 24.06.2009, 11:21
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Chumillas - 24.06.2009, 17:02
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Tannz0rz - 24.06.2009, 17:51
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by cyber_punk - 25.06.2009, 00:44
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 25.06.2009, 08:44
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Mishanzanza - 25.06.2009, 10:54
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 25.06.2009, 11:47
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by saiberfun - 10.08.2009, 23:28
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 11.08.2009, 03:45
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by boelie - 11.08.2009, 10:09
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by saiberfun - 11.08.2009, 11:00
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by jackye38580 - 13.08.2009, 14:10
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by boelie - 13.08.2009, 16:09
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 13.08.2009, 21:57
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by steryman_007 - 16.08.2009, 07:27
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by kevinwalter - 16.08.2009, 14:05
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by watkijkje - 16.08.2009, 21:35
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 17.08.2009, 08:35
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by webflashing - 17.08.2009, 19:58
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by steryman_007 - 17.08.2009, 21:06
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 18.08.2009, 01:09
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by webflashing - 24.08.2009, 16:36
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 24.08.2009, 16:54
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by webflashing - 24.08.2009, 17:10
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by webflashing - 24.08.2009, 17:30
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by saiberfun - 25.08.2009, 18:13
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by webflashing - 25.08.2009, 23:29
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Showman - 23.09.2009, 20:16
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 09.10.2009, 23:16
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 13.10.2009, 02:23
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by KKashimia - 22.11.2009, 15:18
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 24.11.2009, 05:58
REL ScriptPlayer 1 2 by Pghpunkid Custom Audio Plugin Update June 23rd - by Unpally09 - 06.12.2009, 20:51
Re: REL ScriptPlayer 1 2 by Pghpunkid Custom Audio Plugin Update June 23rd - by Pghpunkid - 07.12.2009, 08:01
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by boelie - 07.12.2009, 09:08
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Pghpunkid - 07.12.2009, 20:30
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by will_92 - 29.01.2010, 04:13
Re: [REL] ScriptPlayer 1.2 by Pghpunkid - Custom Audio Plugin [Update June 23rd] - by Sergei - 29.01.2010, 14:13

Forum Jump:


Users browsing this thread: 8 Guest(s)