SA-MP Forums Archive
Audio Plugin HELP - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Audio Plugin HELP (/showthread.php?tid=276586)



Audio Plugin HELP - samtey - 14.08.2011

Hi!

I just downloaded Incognito's audio plugin, and I inserted the include, the plugin, and the folder audio_packs!
(NOT THE FILTERSCRIPT)

Well, I got a question:

What if I want to set a song while OnPlayerRequestClass? Maybe more songs and they should be played randomly?


Re: Audio Plugin HELP - Michael@Belgium - 14.08.2011

So if they are choosing a skin/class there must be playing a song ? :S (i don't fully understannd your question)


AW: Audio Plugin HELP - samtey - 14.08.2011

Yes, while choosing a skin(OnPlayerRequestClass) there should be played randomly songs!


Re: Audio Plugin HELP - Michael@Belgium - 14.08.2011

Well first of all: if you want that every player hear the songs: they must install the Audio Client too !
Ok ?

And try this under OnPlayerRequestClass():

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
          new randomsongs=random(10);//so 10 random songs
          switch(randomsongs)
          {
                   case 0: Audio_Play(playerid,1,false,false,false);//song id 1
                   case 1: Audio_Play(playerid,2,false,false,false);//song id 2
                   case 2: Audio_Play(playerid,3,false,false,false);//song id 3
                   //untill "case 9"
           }
}



AW: Audio Plugin HELP - samtey - 14.08.2011

Wtf? Here isn't written anything about this:

http://forum.sa-mp.com/showthread.ph...t=audio+plugin

Also, what are these false,false,false??


Re: AW: Audio Plugin HELP - Michael@Belgium - 14.08.2011

Quote:
Originally Posted by samtey
Посмотреть сообщение
Wtf? Here isn't written anything about this:

http://forum.sa-mp.com/showthread.ph...t=audio+plugin

Also, what are these false,false,false??
Код:
Audio_Play(playerid, audioid, bool:pause = false, bool:loop = false, bool:downmix = false);
Код:
Audio_Play(playerid, audioid, bool:pause = false, bool:loop = false, bool:downmix = false);

Plays a mapped audio file for a player and specifies whether it should start paused, whether it should be looped, and whether the audio stream should be downmixed to mono
Note: This returns a handle ID.



AW: Audio Plugin HELP - samtey - 14.08.2011

Where to put my mp3 songs? So that he knows which songs I mean?


Re: AW: Audio Plugin HELP - Michael@Belgium - 14.08.2011

Quote:
Originally Posted by samtey
Посмотреть сообщение
Where to put my mp3 songs? So that he knows which songs I mean?
Well, normally in:

Quote:

servermap/audiopacks/default_pack

And first in your gamemode:
pawn Код:
public OnGameModeInit()
{
    Audio_SetPack("default_pack", true);
}