Audio Plugin HELP
#1

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

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

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

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"
           }
}
Reply
#5

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

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

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

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)