AudioStream Code - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AudioStream Code (
/showthread.php?tid=396435)
AudioStream Code -
goviscrap - 30.11.2012
Could someone help me with doing a AudioStreamForPlayer when he enter a specific Area? With radius and so on ?
Re: AudioStream Code -
ikey07 - 30.11.2012
new StreamStarted[MAX_PLAYERS];
if(IsPlayerInRangeOfPoint(playerid..
{
StreamStarted[playerid] = 1;
//StartAudio Here
}
else
{
if(StreamStarted[playerid] == 1)
{
StreamStarted[playerid] = 0;
//Stop Audio Here
}
}
Re: AudioStream Code -
goviscrap - 30.11.2012
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?
}
}
Re: AudioStream Code -
ikey07 - 30.11.2012
new StreamStarted[MAX_PLAYERS]; put at top below #include and #define, and rest looks well
Re: AudioStream Code -
goviscrap - 30.11.2012
Okay
But where to Put the Rest? under which "Public"?