SA-MP Forums Archive
audio - 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: audio (/showthread.php?tid=596461)



audio - GeneralAref - 18.12.2015

how to remove it and set it to one time repeat.



Re: audio - TwinkiDaBoss - 18.12.2015

Show us your code.


Re: audio - N0FeaR - 18.12.2015

Don't make it loop!


Re: audio - GeneralAref - 18.12.2015

Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(PlayerInfo[playerid][pBan] == 1)
	{
		Ban(playerid);
	}
 	PlayAudioStreamForPlayer(playerid, "http://s6.picofile.com/d/62df3a9d-2ce6-4bd1-8d56-48f823f9bc1f/hz_af_caves_controlroom_LR_1.mp3");
	SetPlayerPos(playerid, 220.3261,1822.9734,7.5368);
	SetPlayerCameraPos(playerid, 226.7491,1823.0441,7.4141);
	SetPlayerCameraLookAt(playerid, 220.3261,1822.9734,7.5368);
	SetPlayerFacingAngle(playerid, 270 );
	SetPlayerTeamFromClass(playerid, classid);
	if(classid == 0)
    {
        GameTextForPlayer(playerid,"~r~Internationalforces",3000,3);
    }
	else if(classid == 1)
    {
        GameTextForPlayer(playerid,"~r~Daesh",3000,3);
    }
	return 1;
}



Re: audio - GeneralAref - 18.12.2015

how to remove it when music played?



Re: audio - Vince - 18.12.2015

Not possible. Can be toggled off client side with /audiomsg but you can't force it to be off from the server side.