Raised This Month: $ Target: $400
 0% 

roundsound error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrGarfield
Senior Member
Join Date: Feb 2013
Old 01-19-2020 , 13:27   roundsound error
Reply With Quote #1

good evening

I just toruver this plugin https://forums.alliedmods.net/showthread.php?p=1136844
and modify like this

Code:
#include <amxmodx>

public plugin_init()
{
    register_plugin(0, "1.0", "PaintLancer");
    register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin");
    register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin");
    return 0;
}

public t_win()
{
    new rand = random_num(0, 2);
    client_cmd(0, "stopsound");
    switch (rand)
    {
        case 0:
        {
            client_cmd(0, "spk LTBJail/T_Winnar_1");
        }
        case 1:
        {
            client_cmd(0, "spk LTBJail/T_Winnar_2");
        }
        case 2:
        {
            client_cmd(0, "spk LTBJail/T_Winnar_3");
        }
        default:
        {
        }
    }
    return 1;
}

public ct_win()
{
    new rand = random_num(0, 2);
    client_cmd(0, "stopsound");
    switch (rand)
    {
        case 0:
        {
            client_cmd(0, "spk LTBJail/CT_Winnar_1");
        }
        case 1:
        {
            client_cmd(0, "spk LTBJail/CT_Winnar_3");
        }
        case 2:
        {
            client_cmd(0, "spk LTBJail/CT_Winnar_4");
        }
        default:
        {
        }
    }
    return 1;
}

public plugin_precache()
{
    precache_sound("LTBJail/CT_Winnar_1.wav");
    precache_sound("LTBJail/CT_Winnar_3.wav");
    precache_sound("LTBJail/CT_Winnar_4.wav");
    precache_sound("LTBJail/T_Winnar_1.wav");
    precache_sound("LTBJail/T_Winnar_2.wav");
    precache_sound("LTBJail/T_Winnar_1.wav");
    return 0;
}
but it does not want compilet?

thank you
MrGarfield is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:58.


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