Help with StopAudioStreamForPlayer +rep
#1

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?
Reply
#2

also put under gplayerlogged
StopAudioStreamForPlayer(playerid);
Reply
#3

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.
Reply
#4

Thank you so much! +rep to you my friend.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)