Help with StopAudioStreamForPlayer +rep - 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: Help with StopAudioStreamForPlayer +rep (
/showthread.php?tid=400949)
Help with StopAudioStreamForPlayer +rep -
tryingtoscript - 21.12.2012
Hello, Im trying to get my audio to stop after logging in, I need some help please.
I put this under gplayeraccount
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That name is registered, please wait to login.");
SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing your password below");
DisplayDialogForPlayer(playerid, 1); //login
PlayAudioStreamForPlayer(playerid, "http://37.221.170.8/~nqiojnzm/sug.mp3");
if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
StopAudioStreamForPlayer(playerid);
Why isn't it stopping?
Re: Help with StopAudioStreamForPlayer +rep -
tryingtoscript - 21.12.2012
also put under gplayerlogged
StopAudioStreamForPlayer(playerid);
Re: Help with StopAudioStreamForPlayer +rep -
Ironboy - 21.12.2012
When you login successfully then a message will be displayed something like this 'You have been successfully logged in!'
Put StopAudioStreamForPlayer(playerid); on that function.
Re: Help with StopAudioStreamForPlayer +rep -
tryingtoscript - 21.12.2012
Thank you so much! +rep to you my friend.