SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 27/06/2019, 09:16 AM   #1
zeus99
Little Clucker
 
zeus99's Avatar
 
Join Date: Jun 2019
Location: Hell
Posts: 35
Reputation: 0
Post stream

Hello everyone i need help in stream script

this is play stream for one player

CMD: ppmp3(playerid, params[])
{
//check if the player is a admin
LevelCheck(playerid, 2);
new id, link[256];
if(sscanf(params, "us[256]", id, link)) return SendClientMessage(playerid, -1, "/ppmp3 [PlayerID] [Link]");

StopAudioStreamForPlayer(id);
PlayAudioStreamForPlayer(id, link);
return 1;
}


how to add show dialog for player [Adminstator audio stream]

><><><><

car play

CMD:cmplay(playerid, params[])
{
foreach(Player, i)
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "Usage:: /cmplay [Link]");
if(IsPlayerInAnyVehicle(i))
PlayAudioStreamForPlayer(i, params);
}
return 1;
}


how to play in just one car? /ppmp3 url and play stream just in mycar

><><

or how to playall url stream just in one world?

CMD: playall(playerid, params[])
{
//check if the player is a admin
LevelCheck(playerid, 6);
foreach(Player, i)
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "Usage:: /playall [Link]");
PlayAudioStreamForPlayer(i, params);
}
return 1;
}
zeus99 is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Stream should be used ? skiplovebra Scripting Help 0 25/07/2017 04:52 AM
[Tutorial] Making Stream And Stop Stream Commands dh240473 Tutorials 7 18/09/2015 04:25 PM
Help Stream Objects - Mido Stream Seba97 Help Archive 1 13/08/2011 07:48 AM
Stream Help Anabol Help Archive 2 17/02/2010 11:41 AM


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.