09.10.2012, 18:59
(
Последний раз редактировалось Swimor; 11.10.2012 в 14:55.
)
RaFaeL's Streaming Streamer
currect version: 1.2
Hello all sa-mp programmers!
After hard work on this streamer I very happy to release the include.
Explain
The streamer allows you to play more than stream, It's good for all gamemodes.
Very basic example is dj's party, every dj at her point with her music.
Another example is Road Playlist(as showes in the video).
The using of the streamer is very simple for you.
Details
The abilities of the streamer is very good, alows you to per player multi play or global.
Now you can play many streams at the same time!
Natives
Global:
Player:
Valid:
Callback's:
Enum:
Videos
Total 5 videos - 5 Tests that i made!
[ame]http://www.youtube.com/watch?v=5_d1oaZ8kds[/ame]
[ame]http://www.youtube.com/watch?v=iKc4FVonMsQ[/ame]
[ame]http://www.youtube.com/watch?v=fP1nDKiwt-s[/ame]
[ame]http://www.youtube.com/watch?v=ZMQ87AiSwPo[/ame]
[ame]http://www.youtube.com/watch?v=m1-IYQsr8sc[/ame]
Credits
Me (RaFaeL): Building the streamer.
Incognito: Streamer functions names
Cpstreamer(Creator): Example how to build streamer
Download
v1.2:
PasteBin: http://pastebin.com/mbFA5gLi
v1.1:
PasteBin: http://pastebin.com/JMmB6QjF
Install
* download the include and save as ststreamer.inc
* Include the inc file in you script:
* To change the settings add this defines before the including:
What's new?
# 10/10/2012 (v1.2):
Bugs & Suggestion
Bugs list:
* If player radio volume set to 0 the callback's are called
Suggestion List:
none.
If you have any suggestion please leave a commant!
If this helped you please leave a positive comment.
Enjoy!
currect version: 1.2
Hello all sa-mp programmers!
After hard work on this streamer I very happy to release the include.
Explain
The streamer allows you to play more than stream, It's good for all gamemodes.
Very basic example is dj's party, every dj at her point with her music.
Another example is Road Playlist(as showes in the video).
The using of the streamer is very simple for you.
Details
The abilities of the streamer is very good, alows you to per player multi play or global.
Now you can play many streams at the same time!
Natives
Global:
pawn Код:
native PlayDynamicStream(url[], playerid = INVALID_PLAYER_ID, Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0);
native StopDynamicStream(streamid);
native GetStreamDetails(streamid, url[], &playerid, &Float:PosX, &Float:PosY, &Float:PosZ, &Float:distance);
natice CountDynamicStreams();
pawn Код:
native IsAnyStreamForPlayer(playerid);
native IsStreamForPlayer(playerid, streamid);
native GetPlayerStreaming(playerid);
native TooglePlayerStreaming(playerid, streamid = INVALID_STREAM_ID, bool:status);
native PlayerToogleStatus(playerid, streamid = INVALID_STREAM_ID);
native ToogleGlobalStream(streamid = INVALID_STREAM_ID, bool:status);
pawn Код:
native IsValidStream(streamid);
pawn Код:
forward OnDynamicStreamIn(playerid, streamid);
forward OnDynamicStreamOut(playerid, streamid);
pawn Код:
enum StreamInfo {
surl[128],
sUser,
bool:uPosXYZ,
Float:sposX,
Float:sposY,
Float:sposZ,
Float:sdistance,
bool:uDisabled[MAX_PLAYERS],
bool:Disabled
};
Total 5 videos - 5 Tests that i made!
[ame]http://www.youtube.com/watch?v=5_d1oaZ8kds[/ame]
[ame]http://www.youtube.com/watch?v=iKc4FVonMsQ[/ame]
[ame]http://www.youtube.com/watch?v=fP1nDKiwt-s[/ame]
[ame]http://www.youtube.com/watch?v=ZMQ87AiSwPo[/ame]
[ame]http://www.youtube.com/watch?v=m1-IYQsr8sc[/ame]
Credits
Me (RaFaeL): Building the streamer.
Incognito: Streamer functions names
Cpstreamer(Creator): Example how to build streamer
Download
v1.2:
PasteBin: http://pastebin.com/mbFA5gLi
v1.1:
PasteBin: http://pastebin.com/JMmB6QjF
Install
* download the include and save as ststreamer.inc
* Include the inc file in you script:
pawn Код:
#include <ststreamer>
pawn Код:
#define STREAM_RATE 100 // Time to update the streamer - in milseconds like 1000 (1sec) or 60000(1min)
#define MAX_STREAMS 90 // Maximum global streaming
# 10/10/2012 (v1.2):
Quote:
* Fixed some bugs at the system * Improved script speed * Added TooglePlayerStreaming * Added PlayerToogleStatus * Added ToogleGlobalStream * Fixed IsValidStream |
Bugs list:
* If player radio volume set to 0 the callback's are called
Suggestion List:
none.
If you have any suggestion please leave a commant!
If this helped you please leave a positive comment.
Enjoy!