[Include] Plug n Use Static Streaming system (rStream)
#1

Plug n Use Static Streaming system (rStream)

Hello all,
I make a very simple streaming system (static) working on DOF2.
Without any words the system has:
* Radios - Saving
* Songs - Saving
* 2 userful functions

Video
I will make video tomorrow...

ScreenShots
With the video (I not see any reason to capture the system).

Natives
Global:
pawn Код:
native CheckStreamFiles();
native StopStreamForPlayer(playerid);
native StopStreamForAllPlayers();
Radios:
pawn Код:
native CreateRadio(url[], title[], string[], Float:sX = 0.0, Float:sY = 0.0, Float:sZ = 0.0, Float:Distance = 0.0, bool:UsePos = false); //Return: id/Faild
native EditRadio(radioid, url[], title[], string[], Float:sX = 0.0, Float:sY = 0.0, Float:sZ = 0.0, Float:Distance = 0.0, bool:UsePos = false); //Return: Success/Faild
native DeleteRadio(radioid); //Return: T/F
native IsRadioExists(radioid); //Return: T/F
native IsValidRadio(radioid); //Return: T/F
native PlayRadio(playerid, radioid);
native PlayRadioForAll(radioid);
native GetRadioTitle(radioid);
native GetRadioDesc(radioid);
native CountRadios();
Songs:
pawn Код:
native AddSong(url[], title[], string[], Float:sX = 0.0, Float:sY = 0.0, Float:sZ = 0.0, Float:Distance = 0.0, bool:UsePos = false); //Return: id/Faild
native EsitSong(songid, url[], title[], string[], Float:sX = 0.0, Float:sY = 0.0, Float:sZ = 0.0, Float:Distance = 0.0, bool:UsePos = false); //Return: Success/Faild
native DeleteSong(songid); //Return: T/F
native IsSongExists(songid); //Return: T/F
native IsValidSong(songid); //Return: T/F
native PlaySong(playerid, songid);
native PlaySongForAll(songid);
native CountSongs();
CallBacks:
pawn Код:
forward OnRadioPlayed(radioid, playerid);
forward OnSongPlayed(songid, playerid);

Installation
* Download the include and save as rStream.inc
* add this at the top of the mode:
pawn Код:
#include <rStream>
* Add this function at OnGameModeInit or OnFilterScriptInit:
pawn Код:
CheckStreamFiles();
* Add the publics:
pawn Код:
public OnRadioPlayed(radioid, playerid)
{
    return 1;
}
public OnSongPlayed(songid, playerid)
{
    return 1;
}
Download
PasteBin: http://pastebin.com/wGv8ffRE
MediaFire: http://www.mediafire.com/?ldf779b3x2n39iu

Important
* No mirrors accepted, If you have problem with the download contact me at pm
* You must have DOF2 included before the include
* You must have directory "Stream" In your scriptfiles (You can change this at include)

Credits
* Me(RaFaeL) - Creating the system
* Creator of DOF2

Bugs
To report a bug send me a pm and i will fix this
* No bugs found!

The test script are will be posted as FilterScript with radio system and more...
Enjoy!

Reply
#2

so this will help us to make custom playlist server sided lawl ?
nice was really needed to have a playlist thing which play seprate song cuz single song no make lags afaik

good!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)