[Plugin] Audio Plugin

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

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]
Reply

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

Hi

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

Thank you
Reply

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

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

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

Amazing
Reply

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
Reply

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

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

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
Reply

Awesome, great job.
Rep +1
Reply

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

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
Reply

AWESOME! :P
Reply

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

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]
Reply

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

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


Forum Jump:


Users browsing this thread: 10 Guest(s)