Jump to content
  • 0

Volume Audio Script


XpLoD

Question

if(listitem == 2)
				{
					new handleid,volume;
					if (sscanf(inputtext, "dd", handleid, volume))
					{
						ShowPlayerDialog(playerid, SetVolumeRadio, DIALOG_STYLE_INPUT, "Radio Volume", "Set your volume\nVolume 1 - 100","Set","Cancel");
						return 1;
					}
						new string[64];
						format(string, sizeof(string), "Audio volume set to %d for handle ID %d", volume, handleid);
						SendClientMessage(playerid, COLOR_YELLOW, string);
						Audio_SetVolume(playerid, handleid, volume);
				}

Am incercat sa-mi fac si eu un dialog cu 2-3 Radiouri.. xD si tot in dialog sa pun SetVolume ca sa'ti pui si volume-ul xD si nu stiu de ce nu-mi merge...

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest PlayON

Nu fa asa, incearca sa elimini toate radiourile cand pornesti unul si sa-l pornesti pe cel care l-ai ales, iar celelalte sa se opreasca.

La fel si la volum!

Link to comment
Share on other sites

nu inteleg...

uite cum am la prima linie

if(listitem == 0)
				{
				    Audio_Stop(playerid, RadioZu[playerid]);
					Audio_Stop(playerid, RadioKissFM[playerid]);
					RadioZu[playerid] = Audio_PlayStreamed(playerid, "http://www.radiozu.ro/live.m3u",false,false,true);
					Audio_SetVolume(playerid, RadioZu[playerid], 100);
					Audio_SetFX(playerid, RadioZu[playerid], 3);
				}

a2a kiss. a3a volume.. si nu inteleg cum adica sa elimin toata radiourile si lafel la volum ..:-?

M-am prins.. dar nu stiu sa fac.. fiindca comanda de la /setvolume am pus'o intr-un dialog.. eh si la dialogul asta iti zice sa pui volume-ul.. dar defapt trb sa alegi mai intai ID-ul la care vrei sa dai volume.. si nu stiu sa fac asta.

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.