SA-MP Forums Archive
Killing Spree sound problem - 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)
+--- Thread: Killing Spree sound problem (/showthread.php?tid=429879)



Killing Spree sound problem - Youtube12 - 11.04.2013

Hello guys, I dont hear the sounds why?
My code:

Код:
OnPlayerDeath

            new Name[128];
            GetPlayerName(killerid, Name, sizeof(Name));
            PlayerTotalKills[killerid] = PlayerTotalKills[killerid] +1;

                if(PlayerTotalKills[killerid] == 1)
                {
        				PlayAudioStreamForPlayer(killerid, "http://www.pamp3.site40.net/quake/firstblood.mp3");
                        format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~w~Just Drew ~R~FIRST BLOOD", Name);
                        GameTextForPlayer(killerid,stringys, 6000,3);
                        return 1;
                }

        if(PlayerTotalKills[killerid] == 2)
                        {
        				PlayAudioStreamForPlayer(killerid, "http://www.pamp3.site40.net/quake/doublekill.mp3");
                        format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~w~Just Drew ~B~DOUBLE KILL.", Name);
                        GameTextForPlayer(killerid,stringys, 6000,3);
                        return 1;
                }

        if(PlayerTotalKills[killerid] == 3)
                        {
        PlayAudioStreamForPlayer(killerid, "http://www.pamp3.site40.net/quake/killingspree.mp3");
                                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~w~Just Drew~g~TRIPLE KILL", Name);
                                GameTextForPlayer(killerid,stringys, 6000,3);
                                return 1;
                }

            if(PlayerTotalKills[killerid] == 4)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351114.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~W~IS ~p~DOMINATING", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 5)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351111.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~W~ has a ~P~MEGA KILL", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 6)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351116.mp3");
                format(stringys, sizeof(stringys), "~~N~~N~~N~~N~~r~%s ~W~ Is ~P~UNSTOPPABLE", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 7)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351117.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~W~ Is ~p~WICKED SICK", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
        }

            if(PlayerTotalKills[killerid] == 8)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351109.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~W~ Has a ~p~MONSTERKILL", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
        }

                if(PlayerTotalKills[killerid] == 9)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351119.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~%s ~W~ Is ~p~GODLIKE", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

                if(PlayerTotalKills[killerid] == 10)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
                }

                if(PlayerTotalKills[killerid] == 11)
                {
                        PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                        format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                        GameTextForPlayer(killerid,stringys, 6000,3);
                        return 1;
                }

            if(PlayerTotalKills[killerid] == 12)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 13)
                 {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
				return 1;
            }

            if(PlayerTotalKills[killerid] == 14)
                 {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 15)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 16)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 17)
                 {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }


            if(PlayerTotalKills[killerid] == 18)
                {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

            if(PlayerTotalKills[killerid] == 19)
                 {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }

                if(PlayerTotalKills[killerid] >= 20)
                 {
                PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351110.mp3");
                format(stringys, sizeof(stringys), "~N~~N~~N~~N~~r~ %s ~W~IS ~p~BEYOND GODLIKE! SOMEBODY KILL HIM!!", Name);
                GameTextForPlayer(killerid,stringys, 6000,3);
                return 1;
            }



Re: Killing Spree sound problem - LetsOWN[PL] - 11.04.2013

Hi.

The link to the sound source's broken?
If the link is dead you wont get any sound.

Greetz,
LetsOWN



Re: Killing Spree sound problem - Faisal_khan - 11.04.2013

Are you getting the GameText?
Damn the sounds scared the shit out of me. Have to go to the toilet!


Re: Killing Spree sound problem - park4bmx - 11.04.2013

the links are not broken, i can download them fine!

just make sure you Radio volume is not disabled(or set to 0,same thing)

Otherwise the ping between the server and the file your trying to stream are poor


AW: Killing Spree sound problem - Youtube12 - 11.04.2013

Well, my friend hear the sounds, and I dont hear them but I see the Gametext...!!!


Re: Killing Spree sound problem - Faisal_khan - 11.04.2013

Then the problem is from client side. Done what park4bmx said?


AW: Killing Spree sound problem - Youtube12 - 11.04.2013

Any help?