SA-MP Forums Archive
[Plugin] Audio Plugin - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Audio Plugin (/showthread.php?tid=82162)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


Re: [REL] Audio Plugin v0.5 - Unknown123 - 17.08.2011

Quote:
Originally Posted by SDraw
Посмотреть сообщение
What? Anyone can connect to the TCP server who has a client plugin....
i mean for other players in server

i use this to check
pawn Код:
COMMAND:connected(playerid, params[])
{
    new clientMsg[32];
    if (Audio_IsClientConnected(strval(params)))
    {
        format(clientMsg, sizeof(clientMsg), "Player ID %d is connected", strval(params));
    }
    else
    {
        format(clientMsg, sizeof(clientMsg), "Player ID %d is not connected", strval(params));
    }
    SendClientMessage(playerid, 0xFFFF00FF, clientMsg);
    return 1;
}
it it only sais that id 0 is connected and not 1, 2....


Re: [REL] Audio Plugin v0.5 - wups - 17.08.2011

Quote:
Originally Posted by Unknown123
Посмотреть сообщение
i mean for other players in server

i use this to check
pawn Код:
COMMAND:connected(playerid, params[])
{
    new clientMsg[32];
    if (Audio_IsClientConnected(strval(params)))
    {
        format(clientMsg, sizeof(clientMsg), "Player ID %d is connected", strval(params));
    }
    else
    {
        format(clientMsg, sizeof(clientMsg), "Player ID %d is not connected", strval(params));
    }
    SendClientMessage(playerid, 0xFFFF00FF, clientMsg);
    return 1;
}
it it only sais that id 0 is connected and not 1, 2....
You should do /connected [player_id]


Re: [REL] Audio Plugin v0.5 - Unknown123 - 17.08.2011

Quote:
Originally Posted by wups
Посмотреть сообщение
You should do /connected [player_id]
i did.

connected players to game: 0, 1, 2

/connected 0 = Player ID 0 is connected
/connected 1 = Player ID 1 is not connected
/connected 2 = Player ID 2 is not connected

why is id 1, 2 not connected when thay is in server?


Re: [REL] Audio Plugin v0.5 - godknightx - 24.08.2011

Hi

How can i add external radios to the game with this plugin?
eg. if the url: http://radiostation.com/listen.m3u

Thank you


Re: [REL] Audio Plugin v0.5 - kurta999 - 24.08.2011

Your link are invalid.
pawn Код:
Audio_PlayStreamed(playerid, "http://www.radia.sk/radia/live/europa2.m3u");



Re: [REL] Audio Plugin v0.5 - godknightx - 24.08.2011

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Your link are invalid.
pawn Код:
Audio_PlayStreamed(playerid, "http://www.radia.sk/radia/live/europa2.m3u");
Thank you


Re: [REL] Audio Plugin v0.5 - Borg - 24.08.2011

Nice plugin... But can you add function, that will change the song in the sequence?


Re: [REL] Audio Plugin v0.5 - Davz*|*Criss - 26.08.2011

Amazing


Re: [REL] Audio Plugin v0.5 - godknightx - 26.08.2011

Hi

Me and my brother want to use it, but we cant use it at same time, because if he use it, i cant, but if i use, he cant. We use router. Can you fix it with use other ports to connect or other thing?

Thank you


Re: [REL] Audio Plugin v0.5 - SDraw - 27.08.2011

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Wtf? after i turn off the server:

Код:
--------------------------

SA-MP Server: 0.3c R5



Exception At Address: 0x00C4F425



Registers:

EAX: 0x0000000C	EBX: 0x0000000C	ECX: 0x00A75250	EDX: 0x00C591D0

ESI: 0x0195FD28	EDI: 0x00A75250	EBP: 0x0195FD10	ESP: 0x0195FCD4

EFLAGS: 0x00010246



Stack:

+0000: 0x00A75250   0x0195FD28   0x0195FD10   0x00C5350D

+0010: 0x0B1DC47F   0x00A76710   0x00C92878   0x00C92878

+0020: 0x0195FD60   0x719F41BE   0x719F41CD   0x00000130

+0030: 0x0195FD34   0x00C73008   0xFFFFFFFF   0x0195FD8C

+0040: 0x00C59219   0x0B1DC58B   0x00000000   0x0195FE94

+0050: 0x0195FC80   0x0000000C   0x0195FD00   0x7C90E920

+0060: 0x0195FD5C   0x00C73FA0   0x00000000   0x00C5BD95

+0070: 0x0195FDD0   0x00A75E18   0x00A766F8   0x0B1DC5C3

+0080: 0x0195FE94   0x0195FD48   0x0195FDB0   0x00C71708

+0090: 0x00000000   0x00C5BD1F   0x0195FDC0   0x00A75250

+00A0: 0x0195FDD0   0x00A75E18   0x00A766F8   0x78583C1B

+00B0: 0x0195FD78   0x00000000   0x0195FE84   0x00C5BC91

+00C0: 0x0B1DC500   0x0195FDC0   0x0195FDA8   0x0B1DC533

+00D0: 0x0195FE94   0x0195FDD0   0x0B1DC500   0x0195FE74

+00E0: 0x00C726A8   0x00000000   0x00C5B3E6   0x00C591D0

+00F0: 0x00A75250   0x00A75E18   0x00A766F8   0x000003E3

+0100: 0x00C83170   0x0195FE00   0x0B1DC577   0x00A752E0

+0110: 0x00A76710   0x000003E3   0x00C927B0   0x00C92798

+0120: 0x0195FE00   0x00000000   0x00000000   0x00C591D0

+0130: 0x00A75250   0x00A75E18   0x00A766F8   0x000003E3
I never experienced it earlier. What's wrong? new SA-MP server?
I have same problem. Very huge file "crashinfo.txt"
Post#2: I found problem In OnGameModeExit you should add Audio_DestroyTCPServer();. After that i don't have crashes
This problem was in plugin. If don't destroy audio port, plugin can't be closed and after that there is crash.


Re: [REL] Audio Plugin v0.5 - Brudas - 28.08.2011

I have a question how to assign 3D positions (Set3dpostion) to the Virtual World?


Re : [REL] Audio Plugin v0.5 - Amine_Mejrhirrou - 29.08.2011

i would like to know how to use the 3d audio !
i would like to , for example if a player die , to set a special audio sound for all the player who are next to this player (using Audio_Set3DPosition )
if some one can just give me a small example ( 4 or 5 lines ) just to know how to use it
thnks



Re: [REL] Audio Plugin v0.5 - ModianO - 30.08.2011

Awesome, great job.
Rep +1


Re: [REL] Audio Plugin v0.5 - AndreT - 01.09.2011

Komx, you don't really need the virtual world parameter. You can decide for which players to play the sounds/music for.


Re: [REL] Audio Plugin v0.5 - lewismichaelbbc - 02.09.2011

Can someone help me. My plugin on the server is only allowing one person to connect at a time. How can i fix this?

Thanks


Re: [REL] Audio Plugin v0.5 - TheLoolyWiz - 02.09.2011

AWESOME! :P


Re: [REL] Audio Plugin v0.5 - Komx - 03.09.2011

So how to make music with 3D position players who were run on the specified Virtual World?


Re: [REL] Audio Plugin v0.5 - [CrC]reinixx - 03.09.2011

how to make it play for all player who ar online ? like im logged in RCON and i type /playsong1forall and all players can hear my song [most of my players have audio client] but how can i make it play music for all of them. [sorry for my bad english]


Re: [REL] Audio Plugin v0.5 - cyber_punk - 06.09.2011

Ouch I really wish it was mentioned about Audio_DestroyTCPServer not being hooked in 0.5 I had it commented out since it was hooked in the include on 0.4 >.<


AW: [REL] Audio Plugin v0.5 - Nanory - 06.09.2011

pawn Код:
CMD:play(playerid,params[])
{
    if(IsPlayerAdmin(playerid))
    {
        if(!strlen(params)){return SendClientMessage(playerid,0xAFAFAFAA,"USAGE: /play [url]");}
        for(new i=0; i<MAX_PLAYERS; i++){Audio_PlayStreamed(i,params,false,false,false);}
    }
    return 1;
}
Includes "zcmd" and "sscanf2"...