AudioStream Code
#1

Could someone help me with doing a AudioStreamForPlayer when he enter a specific Area? With radius and so on ?
Reply
#2

new StreamStarted[MAX_PLAYERS];


if(IsPlayerInRangeOfPoint(playerid..
{
StreamStarted[playerid] = 1;
//StartAudio Here
}
else
{
if(StreamStarted[playerid] == 1)
{
StreamStarted[playerid] = 0;
//Stop Audio Here
}
}
Reply
#3

So I have to post the "new" with my other new lines? and under which Public do i have to post this?? It has to lookelike this?
Код:
if(IsPlayerInRangeOfPoint(playerid..
{
StreamStarted[playerid] = 1;
PlayAudioStreamForPlayer(playerid, "http://blablabla"); //Like this?
}
else
{
if(StreamStarted[playerid] == 1)
{
StreamStarted[playerid] = 0;
StopAudioStreamForPlayer(playerid);// Like this?
}
}
Reply
#4

new StreamStarted[MAX_PLAYERS]; put at top below #include and #define, and rest looks well
Reply
#5

Okay But where to Put the Rest? under which "Public"?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)