AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Not Playing Random Sounds (https://forums.alliedmods.net/showthread.php?t=296318)

Copper 04-17-2017 20:02

Not Playing Random Sounds
 
Code:

#include <amxmodx>

#define MESSAGESNOHP 5
#define MESSAGESHP 5

#define lastmansounds 10

new lastmanlist[lastmansounds][] =
{
        "CSDsounds/lastman/lastman1",
        "CSDsounds/lastman/lastman2",
        "CSDsounds/lastman/lastman3",
        "CSDsounds/lastman/lastman4",
        "CSDsounds/lastman/lastman5",
        "CSDsounds/lastman/lastman6",
        "CSDsounds/lastman/lastman7",
        "CSDsounds/lastman/lastman8",
        "CSDsounds/lastman/lastman9",
        "CSDsounds/lastman/lastman10"
}

new alone_ann = 0

new messagesnohp[MESSAGESNOHP][] = {
"%i terrorist vs %i CT^n%s: Now All Depends On You!",
"%i terrorist vs %i CT^n%s: I Hope You Still Have A Healthpack.",
"%i terrorist vs %i CT^n%s: All Your Teammates Were Killed. Good Luck!",
"%i terrorist vs %i CT^n%s: Your Teammates are dead. It's time to die!",
"%i terrorist vs %i CT^n%s: Now You Are Alone. Have Fun!"};

new messageshp[MESSAGESHP][] = {
"%i terrorist vs %i CT^n%s (%i hp): Now All Depend On You!",
"%i terrorist vs %i CT^n%s (%i hp): I Hope You Still Have A Healthpack.",
"%i terrorist vs %i CT^n%s (%i hp): All Your Teammates Were Killed. Good Luck!",
"%i terrorist vs %i CT^n%s (%i hp): Your Teammates are dead. It's time to die!",
"%i terrorist vs %i CT^n%s (%i hp): Now You Are Alone. Have Fun!"};

public roundend_msg(id)

        alone_ann = 0

public death_msg(id)
{

        new lmmode[8]
        get_cvar_string("lastman_mode",lmmode,8)
        new lmmode_bit = read_flags(lmmode)

        new players_ct[32], players_t[32], ict, ite, last
        get_players(players_ct,ict,"ae","CT") 
        get_players(players_t,ite,"ae","TERRORIST") 

        if (ict==1&&ite==1)
        {
                new name1[32], name2[32]
                get_user_name(players_ct[0],name1,32)
                get_user_name(players_t[0],name2,32)
                set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

                if (lmmode_bit & 1)
                {
                        if (lmmode_bit & 2)
                        {
                                show_hudmessage(0,"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
                        }

                        else
                        {
                                show_hudmessage(0,"%s vs. %s",name1,name2)
                        }

                        if (lmmode_bit & 4)
                        {
                                //new r
                                //r = random_num(0,lstsounds-1)
                                new iSounds = random(lastmansounds);
                                client_cmd(0,"spk ^"%s^"",lastmanlist[iSounds])
                        }
                }
        }
        else

        if (ict==1&&ite>1&&alone_ann==0&&(lmmode_bit & 4))
        {
                last=players_ct[0]
                client_cmd(last,"spk misc/oneandonly")

        }

        else if (ite==1&&ict>1&&alone_ann==0&&(lmmode_bit & 4))
        {
                last=players_t[0]
                client_cmd(last,"spk misc/oneandonly")
        }

        else
        {
                return PLUGIN_CONTINUE
        }
        alone_ann = last
        new name[32] 
        get_user_name(last,name,32)

        if (lmmode_bit & 1)
        {
                set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, 1)

                if (lmmode_bit & 2)
                {
                        show_hudmessage(0,messageshp[ random_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
                }

                else
                {
                        show_hudmessage(0,messagesnohp[ random_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
                }
        }

}
        return PLUGIN_CONTINUE 
}

public plugin_precache()
{
        precache_sound("CSDsounds/lastman/lastman1.wav")
        precache_sound("CSDsounds/lastman/lastman2.wav")
        precache_sound("CSDsounds/lastman/lastman3.wav")
        precache_sound("CSDsounds/lastman/lastman4.wav")
        precache_sound("CSDsounds/lastman/lastman5.wav")
        precache_sound("CSDsounds/lastman/lastman6.wav")
        precache_sound("CSDsounds/lastman/lastman7.wav")
        precache_sound("CSDsounds/lastman/lastman8.wav")
        precache_sound("CSDsounds/lastman/lastman9.wav")
        precache_sound("CSDsounds/lastman/lastman10.wav")
       
        return PLUGIN_CONTINUE
}



public plugin_init()
{
        register_plugin("Last Man Sounds","1.0","Copper")
        register_event("ResetHUD", "reset_hud", "b");
        register_event("DeathMsg", "death_event", "a", "1>0");
        register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
        register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
        register_event("DeathMsg","death_msg","a")
        register_cvar("lastman_mode","c")
       
        return PLUGIN_CONTINUE
}

Can anyone tell me what I did wrong, I am trying to edit the ultimate sounds but be able to play more than 1 sound but for some reason the other sounds arent working. Thank You!

EFFx 04-17-2017 20:25

Re: Not Playing Random Sounds
 
There's the code that I gave for your thief friend.

PHP Code:

/********************************************************************************

*********************************************************************************
*
* ///////////////////////////////////////////////////
* //  AMXMOD[X]                                    //
* //   ::Ultimate sounds::                         //
* //    Origional: by Hephaistos            //
* //    Ported by: Dizzy                //
* //    Edited by: Hoboman, bmann_420            //
* //                                               //
* // cvar:                                         //
* //  streak_mode < flags >                        //
* //  "a" - messages                               //
* //  "b" - sounds                                 //
* //                                               //
* //  knife_mode < flags >                         //
* //  "a" - messages                               //
* //  "b" - sounds                                 //
* //                                               //
* //  hs_mode < flags >                            //
* //  "a" - messages                               //
* //  "b" - sounds                                 //
* //                                               //
* //  lastman_mode < flags >                       //
* //  "a" - messages                               //
* //  "b" - hp                                     //
* //  "c" - sounds                                 //
* ///////////////////////////////////////////////////
*
*********************************************************************************
*/

// Plugin Info
new const PLUGIN[]  = "Ultimate Sounds"
new const VERSION[] = "1.9"
new const AUTHOR[]  = "Dizzy / Bmann_420 / Gullu Bhai"

// Includes
#include <amxmodx>

//Defines
#define KNIFEMESSAGES 5
#define MESSAGESNOHP 5
#define MESSAGESHP 5
#define LEVELS 10

//sounds

new const hslist[] = 
{
    
"ultimate_sounds/headshot/headshot1",
    
"ultimate_sounds/headshot/headshot2",
    
"ultimate_sounds/headshot/headshot3",
    
"ultimate_sounds/headshot/headshot4",
    
"ultimate_sounds/headshot/headshot5",
    
"ultimate_sounds/headshot/headshot6",
    
"ultimate_sounds/headshot/headshot7",
    
"ultimate_sounds/headshot/headshot8",
    
"ultimate_sounds/headshot/headshot9",
    
"ultimate_sounds/headshot/headshot10",
    
"ultimate_sounds/headshot/headshot11",
    
"ultimate_sounds/headshot/headshot12",
    
"ultimate_sounds/headshot/headshot13",
    
"ultimate_sounds/headshot/headshot14",
    
"ultimate_sounds/headshot/headshot15"
}

new 
knifelist[][] = 
{
    
"ultimate_sounds/knife/knife1",
    
"ultimate_sounds/knife/knife2",
    
"ultimate_sounds/knife/knife3",
    
"ultimate_sounds/knife/knife4",
    
"ultimate_sounds/knife/knife5",
    
"ultimate_sounds/knife/knife6",
    
"ultimate_sounds/knife/knife7",
    
"ultimate_sounds/knife/knife8",
    
"ultimate_sounds/knife/knife9",
    
"ultimate_sounds/knife/knife10",
    
"ultimate_sounds/knife/knife11",
    
"ultimate_sounds/knife/knife12",
    
"ultimate_sounds/knife/knife13",
    
"ultimate_sounds/knife/knife14",
    
"ultimate_sounds/knife/knife15",
    
"ultimate_sounds/knife/knife16",
    
"ultimate_sounds/knife/knife17",
    
"ultimate_sounds/knife/knife18",
    
"ultimate_sounds/knife/knife19",
    
"ultimate_sounds/knife/knife20",
    
"ultimate_sounds/knife/knife21",
    
"ultimate_sounds/knife/knife22",
    
"ultimate_sounds/knife/knife23",
    
"ultimate_sounds/knife/knife24",
    
"ultimate_sounds/knife/knife25"

}

new 
roundlist[][] = 
{
    
"ultimate_sounds/roundstart/roundstart1",
    
"ultimate_sounds/roundstart/roundstart2",
    
"ultimate_sounds/roundstart/roundstart3",
    
"ultimate_sounds/roundstart/roundstart4",
    
"ultimate_sounds/roundstart/roundstart5"
}

new 
lastlist[][] = 
{
    
"ultimate_sounds/lastman/lastman1",
    
"ultimate_sounds/lastman/lastman2",
    
"ultimate_sounds/lastman/lastman3",
    
"ultimate_sounds/lastman/lastman4",
    
"ultimate_sounds/lastman/lastman5",
    
"ultimate_sounds/lastman/lastman6",
    
"ultimate_sounds/lastman/lastman7",
    
"ultimate_sounds/lastman/lastman8",
    
"ultimate_sounds/lastman/lastman9",
    
"ultimate_sounds/lastman/lastman10"
}

new 
nadelist[][] = 
{
    
"ultimate_sounds/nade/nade1",
    
"ultimate_sounds/nade/nade2",
    
"ultimate_sounds/nade/nade3",
    
"ultimate_sounds/nade/nade4",
    
"ultimate_sounds/nade/nade5",
    
"ultimate_sounds/nade/nade6",
    
"ultimate_sounds/nade/nade7",
    
"ultimate_sounds/nade/nade8",
    
"ultimate_sounds/nade/nade9",
    
"ultimate_sounds/nade/nade10",
    
"ultimate_sounds/nade/nade11",
    
"ultimate_sounds/nade/nade12",
    
"ultimate_sounds/nade/nade13",
    
"ultimate_sounds/nade/nade14",
    
"ultimate_sounds/nade/nade15",
    
"ultimate_sounds/nade/nade16",
    
"ultimate_sounds/nade/nade17",
    
"ultimate_sounds/nade/nade18",
    
"ultimate_sounds/nade/nade19",
    
"ultimate_sounds/nade/nade20"
}


//Pcvars
new streak_modeknife_modehs_modelastman_mode

new gmsgHudSync

new kills[33] = {0,...};
new 
deaths[33] = {0,...};
new 
alone_ann 0
new levels[10] = {234567891011};

//Streak Sounds
new stksounds[10][] = 
{
    
"misc/multikill",
    
"misc/megakill",
    
"misc/ultrakill",
    
"misc/monsterkill",
    
"misc/killingspree",
    
"misc/wickedsick",
    
"misc/rampage",
    
"misc/ludacrisskill",
    
"misc/godlike",
    
"misc/holyshit"
}


new 
stkmessages[10][] = 
{
    
"%s: Multi-Kill!",
    
"%s: Mega-Kill!",
    
"%s: Ultra-Kill!",
    
"%s: Monster-Kill!",
    
"%s: Killing Spree!",
    
"%s: Wicked Sick!",
    
"%s: Rampage!",
    
"%s: Ludacriss-Kill",
    
"%s: Godlike!",
    
"%s: Holy Shit!"
}

new 
knifemessages[KNIFEMESSAGES][] = 
{
    
"KNIFE_MSG_1",  
    
"KNIFE_MSG_2",  
    
"KNIFE_MSG_3",  
    
"KNIFE_MSG_4",  
    
"KNIFE_MSG_5"
}

new 
messagesnohp[MESSAGESNOHP][] = 
{
    
"NOHP_MSG_1",  
    
"NOHP_MSG_2",  
    
"NOHP_MSG_3",  
    
"NOHP_MSG_4",  
    
"NOHP_MSG_5"
}

new 
messageshp[MESSAGESHP][] = 
{
    
"HP_MSG_1",  
    
"HP_MSG_2",  
    
"HP_MSG_3",  
    
"HP_MSG_4",  
    
"HP_MSG_5"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("ultimate_sounds",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
    
register_dictionary("ultimate_sounds.txt")
    
register_event("DeathMsg","hs","a","3=1")
    
register_event("DeathMsg","knife_kill","a","4&kni")
    
register_event("DeathMsg""nadekill""a""1>0")
    
register_event("ResetHUD""reset_hud""b");
    
register_event("DeathMsg""death_event""a""1>0");
    
register_event("DeathMsg","death_msg","a")
    
register_event("SendAudio","roundend_msg","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
    
register_event("TextMsg","roundend_msg","a","2&#Game_C","2&#Game_w")
    
register_event("HLTV""event_new_round""a""1=0""2=0")  

    
lastman_mode register_cvar("lastman_mode","abc")
    
streak_mode register_cvar("streak_mode","ab")
    
knife_mode register_cvar("knife_mode","ab")
    
hs_mode register_cvar("hs_mode","ab")

    
gmsgHudSync CreateHudSyncObj()

    return 
PLUGIN_CONTINUE
}

get_streak()
{
    new 
streak[3]
    
get_pcvar_string(streak_mode,streak,2)
    return 
read_flags(streak)
}

public 
death_event(id)
{
    new 
streak get_streak()

    if ((
streak&1) || (streak&2))
    {
        new 
killer read_data(1);
        new 
victim read_data(2);
        
        if (
killer <= get_maxplayers())
        return 
PLUGIN_CONTINUE;
        
        
kills[killer] += 1;
        
kills[victim] = 0;
        
deaths[killer] = 0;
        
deaths[victim] += 1;

        for (new 
0LEVELSi++)
        {
            if (
kills[killer] == levels[i])
            {
                
announce(killeri);
                return 
PLUGIN_CONTINUE;
            }
        }
    }
    return 
PLUGIN_CONTINUE;
}

announce(killerlevel)
{
    new 
streak get_streak()

    if (
streak&1)
    {
        new 
name[32];

        
get_user_name(killername32);
        
set_hudmessage(01002000.050.6520.026.00.010.12);
        
ShowSyncHudMsg(0gmsgHudSyncstkmessages[level], name);
    }

    if (
streak&2){
        
client_cmd(0"spk ^"%s^""stksounds[level]); 
    }
}
public 
event_new_round()
{
    
client_cmd(0,"spk ^"%s^"",roundlist[random_num(0sizeof roundlist 1)])
}
public 
reset_hud(id)
{
    new 
streak get_streak()

    if (
streak&1)
    {

        if (
kills[id] > levels[0])

        {
            
client_print(idprint_chat,"%L"id"KILL_STREAK"kills[id]);
        }

        else if (
deaths[id] > 1)

        {
            
client_print(idprint_chat,"%L"id"DEATH_STREAK"deaths[id]);
        }
    }
}

public 
client_connect(id)
{
    new 
streak get_streak()

    if ((
streak&1) || (streak&2))
    {
        
kills[id] = 0;
        
deaths[id] = 0;
    }
}

public 
nadekill()
{
    new 
killer read_data(1)
    new 
victim read_data(2)
    new 
weapon[8]
    
read_data(4weapon7)
    
    if (
killer != victim && equal(weapon"grenade"))
    {
        
client_cmd(0,"spk ^"%s^"",nadelist[random_num(0,sizeof nadelist 1)])
    }
    return 
PLUGIN_HANDLED;
    
}

public 
knife_kill()
{
    new 
knifemode[4
    
get_pcvar_string(knife_mode,knifemode,4
    new 
knifemode_bit read_flags(knifemode)

    if (
knifemode_bit 1)
    {
        new 
killer_id read_data(1)
        new 
victim_id read_data(2)
        new 
killer_name[33], victim_name[33]

        
get_user_name(killer_id,killer_name,33)
        
get_user_name(victim_id,victim_name,33)


        
set_hudmessage(2001000, -1.00.3006.06.00.50.151)
        
ShowSyncHudMsg(0gmsgHudSync"%L"LANG_PLAYERknifemessagesrandom_num(0,KNIFEMESSAGES-1) ],killer_name,victim_name)
    }

    if (
knifemode_bit 2)
    {
        
client_cmd(0,"spk ^"%s^"",knifelist[random_num(0sizeof knifelist)])
    }
    return 
PLUGIN_HANDLED;
}


public 
roundend_msg(id)

alone_ann 0

public death_msg(id)
{

    new 
lmmode[8
    
get_pcvar_string(lastman_mode,lmmode,8
    new 
lmmode_bit read_flags(lmmode)

    new 
players_ct[32], players_t[32], ictitelast
    get_players
(players_ct,ict,"ae","CT")   
    
get_players(players_t,ite,"ae","TERRORIST")   

    if (
ict==1&&ite==1)
    {
        new 
name1[32], name2[32]
        
get_user_name(players_ct[0],name1,32)
        
get_user_name(players_t[0],name2,32)
        
set_hudmessage(2001000, -1.00.3006.06.00.50.151)

        if (
lmmode_bit 1)
        {
            if (
lmmode_bit 2)
            {
                
ShowSyncHudMsg(0gmsgHudSync"%s (%i hp) vs. %s (%i hp)",name1,get_user_health(players_ct[0]),name2,get_user_health(players_t[0]))
            }

            else
            {
                
ShowSyncHudMsg(0gmsgHudSync"%s vs. %s",name1,name2)
            }

            if (
lmmode_bit 4)
            {
                
client_cmd(0,"spk ^"%s^"",lastlist[random_num(0,sizeof lastlist 1)])
            }
        }
    } 
    else
    {   
        if (
ict==1&&ite>1&&alone_ann==0&&(lmmode_bit 4))
        {
            
last=players_ct[0]
            
client_cmd(last,"spk misc/oneandonly")

        }

        else if (
ite==1&&ict>1&&alone_ann==0&&(lmmode_bit 4))
        {
            
last=players_t[0]
            
client_cmd(last,"spk misc/oneandonly")
        }

        else
        {
            return 
PLUGIN_CONTINUE
        
}
        
alone_ann last
        
new name[32]   
        
get_user_name(last,name,32)

        if (
lmmode_bit 1)
        {
            
set_hudmessage(2001000, -1.00.3006.06.00.50.151)

            if (
lmmode_bit 2)
            {
                
ShowSyncHudMsg(0gmsgHudSync"%L"LANG_PLAYERmessageshprandom_num(0,MESSAGESHP-1) ],ite ,ict ,name,get_user_health(last))
            }

            else
            {
                
ShowSyncHudMsg(0gmsgHudSync"%L"LANG_PLAYERmessagesnohprandom_num(0,MESSAGESNOHP-1) ],ite ,ict ,name )
            }
        }

    }
    return 
PLUGIN_CONTINUE   
}


public 
hs()
{
    new 
hsmode[4
    
get_pcvar_string(hs_mode,hsmode,4
    new 
hsmode_bit read_flags(hsmode)

    if (
hsmode_bit 1)
    {
        new 
killer_id read_data(1)
        new 
victim_id read_data(2)
        new 
victim_name[33]

        
get_user_name(victim_id,victim_name,33)

        
set_hudmessage(2001000, -1.00.3003.03.00.150.151)
        
ShowSyncHudMsg(killer_idgmsgHudSync"::HEADSHOT::^nYou Owned %s !!",victim_name)
    }

    if (
hsmode_bit 2)
    {
        
client_cmd(0,"spk ^"%s^"",hslist[random_num(0,sizeof hslist)])
    }
}

public 
plugin_precache()
{
    
precache_sound("misc/monsterkill.wav")
    
precache_sound("misc/godlike.wav")
    
precache_sound("misc/headshot.wav")
    
precache_sound("misc/humiliation.wav")
    
precache_sound("misc/killingspree.wav")
    
precache_sound("misc/multikill.wav")
    
precache_sound("misc/ultrakill.wav")
    
precache_sound("misc/maytheforce.wav")
    
precache_sound("misc/oneandonly.wav")
    
precache_sound("misc/rampage.wav")
    
precache_sound("misc/holyshit.wav")
    
precache_sound("misc/megakill.wav")
    
precache_sound("misc/wickedsick.wav")
    
precache_sound("misc/ludacrisskill.wav")
    
    
// new sounds

    
precache_sound("ultimate_sounds/headshot/headshot1.wav")
    
precache_sound("ultimate_sounds/headshot/headshot2.wav")
    
precache_sound("ultimate_sounds/headshot/headshot3.wav")
    
precache_sound("ultimate_sounds/headshot/headshot4.wav")
    
precache_sound("ultimate_sounds/headshot/headshot5.wav")
    
precache_sound("ultimate_sounds/headshot/headshot6.wav")
    
precache_sound("ultimate_sounds/headshot/headshot7.wav")
    
precache_sound("ultimate_sounds/headshot/headshot8.wav")
    
precache_sound("ultimate_sounds/headshot/headshot9.wav")
    
precache_sound("ultimate_sounds/headshot/headshot10.wav")
    
precache_sound("ultimate_sounds/headshot/headshot11.wav")
    
precache_sound("ultimate_sounds/headshot/headshot12.wav")
    
precache_sound("ultimate_sounds/headshot/headshot13.wav")
    
precache_sound("ultimate_sounds/headshot/headshot14.wav")
    
precache_sound("ultimate_sounds/headshot/headshot15.wav")
    
    
    
precache_sound("ultimate_sounds/knife/knife1.wav")
    
precache_sound("ultimate_sounds/knife/knife2.wav")
    
precache_sound("ultimate_sounds/knife/knife3.wav")
    
precache_sound("ultimate_sounds/knife/knife5.wav")
    
precache_sound("ultimate_sounds/knife/knife6.wav")
    
precache_sound("ultimate_sounds/knife/knife7.wav")
    
precache_sound("ultimate_sounds/knife/knife8.wav")
    
precache_sound("ultimate_sounds/knife/knife9.wav")
    
precache_sound("ultimate_sounds/knife/knife10.wav")
    
precache_sound("ultimate_sounds/knife/knife11.wav")
    
precache_sound("ultimate_sounds/knife/knife12.wav")
    
precache_sound("ultimate_sounds/knife/knife13.wav")
    
precache_sound("ultimate_sounds/knife/knife14.wav")
    
precache_sound("ultimate_sounds/knife/knife15.wav")
    
precache_sound("ultimate_sounds/knife/knife16.wav")
    
precache_sound("ultimate_sounds/knife/knife17.wav")
    
precache_sound("ultimate_sounds/knife/knife18.wav")
    
precache_sound("ultimate_sounds/knife/knife19.wav")
    
precache_sound("ultimate_sounds/knife/knife20.wav")
    
precache_sound("ultimate_sounds/knife/knife21.wav")
    
precache_sound("ultimate_sounds/knife/knife22.wav")
    
precache_sound("ultimate_sounds/knife/knife23.wav")
    
precache_sound("ultimate_sounds/knife/knife24.wav")
    
precache_sound("ultimate_sounds/knife/knife25.wav")
    
    
precache_sound("ultimate_sounds/roundstart/roundstart1.wav")
    
precache_sound("ultimate_sounds/roundstart/roundstart2.wav")
    
precache_sound("ultimate_sounds/roundstart/roundstart3.wav")
    
precache_sound("ultimate_sounds/roundstart/roundstart4.wav")
    
precache_sound("ultimate_sounds/roundstart/roundstart5.wav")
    
    
precache_sound("ultimate_sounds/lastman/lastman1.wav")
    
precache_sound("ultimate_sounds/lastman/lastman2.wav")
    
precache_sound("ultimate_sounds/lastman/lastman3.wav")
    
precache_sound("ultimate_sounds/lastman/lastman4.wav")
    
precache_sound("ultimate_sounds/lastman/lastman5.wav")
    
precache_sound("ultimate_sounds/lastman/lastman6.wav")
    
precache_sound("ultimate_sounds/lastman/lastman7.wav")
    
precache_sound("ultimate_sounds/lastman/lastman8.wav")
    
precache_sound("ultimate_sounds/lastman/lastman9.wav")
    
precache_sound("ultimate_sounds/lastman/lastman10.wav")
    
    
precache_sound("ultimate_sounds/nade/nade1.wav")
    
precache_sound("ultimate_sounds/nade/nade2.wav")
    
precache_sound("ultimate_sounds/nade/nade3.wav")
    
precache_sound("ultimate_sounds/nade/nade4.wav")
    
precache_sound("ultimate_sounds/nade/nade5.wav")
    
precache_sound("ultimate_sounds/nade/nade6.wav")
    
precache_sound("ultimate_sounds/nade/nade7.wav")
    
precache_sound("ultimate_sounds/nade/nade8.wav")
    
precache_sound("ultimate_sounds/nade/nade9.wav")
    
precache_sound("ultimate_sounds/nade/nade10.wav")
    
precache_sound("ultimate_sounds/nade/nade11.wav")
    
precache_sound("ultimate_sounds/nade/nade12.wav")
    
precache_sound("ultimate_sounds/nade/nade13.wav")
    
precache_sound("ultimate_sounds/nade/nade14.wav")
    
precache_sound("ultimate_sounds/nade/nade15.wav")
    
precache_sound("ultimate_sounds/nade/nade16.wav")
    
precache_sound("ultimate_sounds/nade/nade17.wav")
    
precache_sound("ultimate_sounds/nade/nade18.wav")
    
precache_sound("ultimate_sounds/nade/nade19.wav")
    
precache_sound("ultimate_sounds/nade/nade20.wav")
    
    return 
PLUGIN_CONTINUE 


http://prntscr.com/exnkub

Copper 04-17-2017 20:30

Re: Not Playing Random Sounds
 
okay? idc that's between you and him.

EFFx 04-17-2017 20:34

Re: Not Playing Random Sounds
 
When I asked if you care? I just said from where the code come from. Just check it and see if my codes doesn't works.

Copper 04-17-2017 20:35

Re: Not Playing Random Sounds
 
umm no, I didnt even have the code to start with. So not sure what the hell you're talking about.

EFFx 04-17-2017 20:37

Re: Not Playing Random Sounds
 
Quote:

Originally Posted by EFFx (Post 2513110)
I just said from where the code come from.


Quote:

Originally Posted by EFFx (Post 2513110)
Just check it and see if my codes doesn't works as ur friend said.


Copper 04-17-2017 21:02

Re: Not Playing Random Sounds
 
I dont want to try your codes. I just want to get my stuff fixed. Also can anyone help me add a minimum players so that if set it to X amount of players, we can hear the sounds. Thank you.

EFFx 04-17-2017 21:16

Re: Not Playing Random Sounds
 
ROFL

Copper 04-17-2017 21:19

Re: Not Playing Random Sounds
 
LMFAO

EFFx 04-17-2017 21:23

Re: Not Playing Random Sounds
 
Good luck, I think a guy that pay another that doesn't know how to play random sound must have, TOO MUCH ROFL.


All times are GMT -4. The time now is 18:05.

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