AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   AMX Super (https://forums.alliedmods.net/forumdisplay.php?f=111)
-   -   loadsound problems (https://forums.alliedmods.net/showthread.php?t=103904)

drekes 09-17-2009 13:15

loadsound problems
 
Hi guys,

i tryed to edit the loadingsounds in amx_super.
I changed the names of the song to others and got a problem.
I got 2 servers:
1 is playing the original hl sounds
2 isnt playing at all and in console i get this message
"server fails to transmit sound: sound/misc/loadingsound1"
and so on till loadingsound 4
in the sound path do i add cstrike like cstrike/sound/misc/loadingsound1.mp3
I tryed it and it didnt work either.
Please help me with this.
Greets Drekes

bmann_420 09-17-2009 14:39

Re: loadsound problems
 
if you get a "filed to transmit" = means its not int he misc folder. Besides you have to precache it.

Here is an example:
Code:


#include <amxmodx>
#define Maxsounds 5

new soundlist[Maxsounds][] = {"mysong1","mysong2","mysong3","mysong4","mysong5"}


public plugin_precache() {
        precache_sound("misc/mysong1.mp3")
        precache_sound("misc/mysong2.mp3")
        precache_sound("misc/mysong3.mp3")
        precache_sound("misc/mysong4.mp3")
        precache_sound("misc/mysong5.mp3")
        return PLUGIN_CONTINUE
}



public client_connect(id) {
        new i
        i = random_num(0,Maxsounds-1)
        client_cmd(id,"mp3 play sound/misc/%s",soundlist[i])
        return PLUGIN_CONTINUE
}

If you want to use your own, i would suggest disabeling the one int he super (via cvar) and use This one.

drekes 09-17-2009 15:10

Re: loadsound problems
 
i precached it.
it downloads but it doesnt play i'll try yours.
Thanks

bmann_420 09-19-2009 14:20

Re: loadsound problems
 
Just disable it and use the different plugin. Its much easier

drekes 09-20-2009 08:16

Re: loadsound problems
 
it works with the example you posted.
Thanks man i'd like to give you karma but i don't know how it works

drekes 09-20-2009 13:02

Re: loadsound problems
 
is it normal every time i enter the server i have to download the sounds again. This can't be right huh.
Do you know what the problem is

bmann_420 09-20-2009 14:25

Re: loadsound problems
 
You dl it once, and thats it.... I seriously wouldnt know why you would have to dl it everytime. Does it actually dl the whole thing again? Or connect you to your fast dl real fast and not dl anything, then reconnect you to your server?

drekes 09-25-2009 19:36

Re: loadsound problems
 
Fast dl really fast and then reconnect.
Is it possible to fix this cause it's pretty annoying

bmann_420 09-26-2009 17:00

Re: loadsound problems
 
Id need to see the code.

drekes 09-29-2009 15:55

Re: loadsound problems
 
Code:

#include <amxmodx>
#define Maxsounds 4

new soundlist[Maxsounds][] = {"Dc_song1","solofrikis_3","solofrikis_5","solofrikis_6"}


public plugin_precache() {
    precache_sound("misc/Dc_song1.mp3")
    precache_sound("misc/solofrikis_3.mp3")
    precache_sound("solofrikis_5.mp3")
    precache_sound("solofrikis_6.mp3")
    return PLUGIN_CONTINUE
}



public client_connect(id) {
    new i
    i = random_num(0,Maxsounds-1)
    client_cmd(id,"mp3 play sound/misc/%s",soundlist[i])
    return PLUGIN_CONTINUE
}

Here it is

drekes 10-14-2009 05:29

Re: loadsound problems
 
I deleted the whole loadsound script from amx_super and the precache part also.
Now it works like a charm.
Thanks for your help

varredor 06-11-2012 22:34

Re: loadsound problems
 
Quote:

Originally Posted by bmann_420 (Post 935998)
if you get a "filed to transmit" = means its not int he misc folder. Besides you have to precache it.

Here is an example:
Code:


#include <amxmodx>
#define Maxsounds 5

new soundlist[Maxsounds][] = {"mysong1","mysong2","mysong3","mysong4","mysong5"}


public plugin_precache() {
        precache_sound("misc/mysong1.mp3")
        precache_sound("misc/mysong2.mp3")
        precache_sound("misc/mysong3.mp3")
        precache_sound("misc/mysong4.mp3")
        precache_sound("misc/mysong5.mp3")
        return PLUGIN_CONTINUE
}



public client_connect(id) {
        new i
        i = random_num(0,Maxsounds-1)
        client_cmd(id,"mp3 play sound/misc/%s",soundlist[i])
        return PLUGIN_CONTINUE
}

If you want to use your own, i would suggest disabeling the one int he super (via cvar) and use This one.

error compiler :s

DarkGod 06-12-2012 15:45

Re: loadsound problems
 
Quote:

Originally Posted by varredor (Post 1727068)
error compiler :s

Compiles just fine.


All times are GMT -4. The time now is 19:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.