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