Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Wklejka m4v7odkva00k dodana przez MarWit, 13.10.2012 21:54
Typ:



1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
361.
362.
363.
364.
365.
366.
367.
368.
369.
370.
371.
372.
373.
374.
375.
376.
377.
378.
379.
380.
381.
382.
383.
384.
385.
386.
387.
388.
389.
390.
391.
392.
393.
394.
395.
396.
397.
398.
399.
400.
401.
402.
403.
404.
405.
406.
407.
408.
409.
410.
411.
412.
413.
414.
415.
416.
417.
418.
419.
420.
421.
422.
423.
424.
425.
426.
427.
428.
429.
430.
431.
432.
433.
434.
435.
436.
437.
438.
439.
440.
441.
442.
443.
444.
445.
446.
447.
448.
449.
450.
451.
452.
453.
454.
455.
456.
457.
458.
459.
460.
461.
462.
463.
464.
465.
466.
467.
468.
469.
470.
471.
472.
473.
474.
475.
476.
477.
478.
479.
480.
481.
482.
483.
484.
485.
486.
487.
488.
489.
490.
491.
492.
493.
494.
495.
496.
497.
498.
499.
500.
501.
502.
503.
504.
505.
506.
507.
508.
509.
510.
511.
512.
513.
514.
515.
516.
517.
518.
519.
520.
521.
522.
523.
524.
525.
526.
527.
528.
529.
530.
531.
532.
533.
534.
535.
536.
537.
538.
539.
540.
541.
542.
543.
544.
545.
546.
547.
548.
549.
550.
551.
552.
553.
554.
555.
556.
557.
558.
559.
560.
561.
562.
563.
564.
565.
566.
567.
568.
569.
570.
571.
572.
573.
574.
575.
576.
577.
578.
579.
580.
581.
582.
583.
584.
585.
586.
587.
588.
589.
590.
591.
592.
593.
594.
595.
596.
597.
598.
599.
600.
601.
602.
603.
604.
605.
606.
607.
608.
609.
610.
611.
612.
613.
614.
615.
616.
617.
618.
619.
620.
621.
622.
623.
624.
625.
626.
627.
628.
629.
630.
631.
632.
633.
634.
 
        /* - - - - - - - - - - -
 
                AMX Mod X script.
                Copyright (C) 2007 - Arkshine
 
                Plugin  : 'Alternative End Round Sounds'
                Version :  v2.3b
 
                Original idea and plugin by PaintLancer.
                Orignal thread : http://forums.alliedmods.net/showthread.php?t=6784
 
                This program is free software; you can redistribute it and/or modify it
                under the terms of the GNU General Public License as published by the
                Free Software Foundation; either version 2 of the License, or (at
                your option) any later version.
 
                This program is distributed in the hope that it will be useful, but
                WITHOUT ANY WARRANTY; without even the implied warranty of
                MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
                General Public License for more details.
 
                You should have received a copy of the GNU General Public License
                along with this program; if not, write to the Free Software Foundation,
                Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
                In addition, as a special exception, the author gives permission to
                link the code of this program with the Half-Life Game Engine ("HL
                Engine") and Modified Game Libraries ("MODs") developed by Valve,
                L.L.C ("Valve"). You must obey the GNU General Public License in all
                respects for all of the code used other than the HL Engine and MODs
                from Valve. If you modify this file, you may extend this exception
                to your version of the file, but you are not obligated to do so. If
                you do not wish to do so, delete this exception statement from your
                version.
 
                ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 
                Description :
                - - - - - - -
                        Plays random music at the end of a round according to who wins,
                        instead of just "Terrorists Win" or "Counter-Terrorists Win".
 
 
                Features :
                - - - - - -
                        * Support for mp3 and wav files
                        * Using a file for the sounds
                        * Per-map config files supported
                        * Per-map prefix config files supported
                        * Sounds can be toggle on/off by players
                        * Ability to choice x sounds to be precache per map
                        * Multilingual support
 
 
                Requirements :
                - - - - - - - -
                        * CS 1.6 / CZ
                        * AMX/X 1.7x or higher
 
 
                Cvars :
                - - - -
                        * ers_enabled <iNum
 
                                <0|1> Disable/Enable this plugin.
                                (default: 1)
 
 
                        * ers_player_toggle <iNum>
 
                                <0|1> Disable/Enable the client command /roundsound
                                (default: 1)
 
 
                        * erc_time_ads <iTime>
 
                                Times in seconds between each ads messages. 0 disable ads.
                                (default: 120)
 
 
                        * erc_random_precache <iMaxTeam or iMax_T-iMax_CT>
 
                                Specify how many sounds by team you want to precache randomly among all sounds.
                                This means that x sounds will be choosen randomly among all sounds of each team so to be precache at each map. ( 0 = disable feature )
 
                                e.g : erc_random_precache "2"   : 2 sounds will be choosen among all CTs sounds and all Ts sounds
                                          erc_random_precache "2-3" : 2 Ts sounds will be choosen randomly among all Ts sounds.
                                                                                                  3 CT sound will be choosen randomly among all CTs sounds.
                                                                                                  /! Don't forget to insert '-' .
 
                                /! Map change on cvar change required !
 
 
                Client command :
                - - - - - - - -
                        * say /roundsound : Give to players the ability to turn on/off the end round sounds
 
 
                Changelog :
                - - - - - -
 
                        -> Arksine :
 
                         v3.0  - [ 2007-xx-xx ] ( Major update )
 
                                          - Soon. A lot of changes/new features. Huge update. ;)
 
                         v2.3b - [ 2007-11-22 ]
 
                                          (!) Fixed a compatibility bug from 2.3a version.
 
                         v2.3a - [ 2007-11-19 ]
 
                                          (+) Added compatibility for Amxx 1.7x.
                                          (!) Now 'erc_random_precache' cvar is set to 0 by default.
                                          (!) Fixed. At the first start of server, value from 'erc_random_precache' cvar from a config file was not read.
                                          (!) Some others minors changes.
 
                         v2.3  - [ 2007-10-29 ]
 
                                          (+) Added 'erc_random_precache' cvar : Specify how many sounds per team you want to precache randomly among all sounds.
                                                  This means that x sounds will be choosen randomly among all sounds of each team so to be precache at each map. ( request by Arion )
                                          (!) Debug mode is enabled by default now.
                                          (-) Removed 3 keys languages. No more need.( ERS_LOG_TOTAL_SOUND_LOADED, ERS_LOG_DEBUG_T, ERS_LOG_DEBUG_CT )
 
                         v2.2b - [ 2007-10-28 ]
 
                                          (!) Removed a check. Since trim() is used :
                                                  Now no need to check space, new line, tabs, carriage returns, etc..
 
                         v2.2a - [ 2007-10-28 ]
 
                                          (!) Changed the method of checking empty file. Now it's more efficient.
                                          (!) Added another check to ignore texts which are no comments.
                                          (!) Fixed a typo ( key language ).
 
                         v2.2  - [ 2007-10-27 ]
 
                                          (+) Added a check to prevent to get a warning when a team has no sound.
                                          (+) Added a check to prevent to not load empty file.
                                          (+) Added support for coding-style '//' comments.
                                          (!) No longer has a predefined max sounds limit. ( using dynamic array from amxx 1.8.0 )
                                          (!) Minors optimizations.
                                          (-) Removed useless code.
 
                         v2.1a - [ 2007-07-13 ]
 
                                          (!) Fixed a bug with ML system.
                                          (!) Fixed a stupid glitch with formatex().
 
                         v2.1  - [ 2007-07-06 ]
 
                                          (!) Optimize a little.
                                          (!) Rewritted loading_file() function.
                                          (+) Added ML system & some texts.
                                          (+) Added Color in text. ( !g = green ; !t = team color; !n = yellow (normal) )
                                          (+) Added #_DEBUG.
                                          (+) Added chat command : toggle on/off end round sounds.
                                          (+) Added "ers_enabled" cvar : enable/disable plugin
                                          (+) Added "ers_player_toggle" cvar : enable/disabled command chat for players
                                          (+) Added ads message for chat command
                                          (+) Added "erc_time_ads" cvar : control amount of times between 2 messages.
 
                         v2.0b - [ 2007-07-04 ]
 
                                          (!) No features added. Sma reorganized a little and more.
 
                         v2.0a - [ 2007-06-26 ]
 
                                          (!) Fixed. Bug under linux. Some blank lines weren't ignored. (thanks Deejay & NiLuje)
 
                         v2.0  - [ 2007-06-26 ]
 
                                          (!) Totaly rewritted
                                          (+) Added support for mp3 files.
                                          (+) Added support per file. No more to edit .sma file to add sounds.
                                          (+) Added support per-map file.
                                          (+) Added support per-map prefix file.
 
                        -> Paintlancer :
 
                         v1.0  :  [ 2004-10-14 ]
                                          First release by Paintlancer.
                                          Orignal thread : http://forums.alliedmods.net/showthread.php?t=6784
 
                Credits:
                - - - - - - -
                        * PaintLancer : Original idea and plugin.
                        * Avalanche   : Inspired color chat function from gungame plugin.
                        * Arion    : Random precache idea.
 
                        * Languages translation :
                                - [fr] : Arkshine
                                - [de] : Mordekay
                                - [es] : Darkless
 
 
        - - - - - - - - - - - */
 
        #include <amxmodx>
        #include <amxmisc>
 
 
                new const
        // _________________________________________________
 
                        PLUGIN [] = "Alternative End Round Sounds",
                        VERSION[] = "2.3b",
                        AUTHOR [] = "Arkshine";
        // _________________________________________________
 
 
        #if AMXX_VERSION_NUM < 180
                #define old_amxx
        #endif
 
 
        /* ========================= [ "START" AERA FOR CHANGES ] ========================= */
 
 
                #define _DEBUG                           // Active debug
                #define MAX_FILE_LENGTH  196   // Max length for files + path.
 
                #if defined old_amxx
                        #define MAX_SOUNDS      25   // Max sounds per team
                #endif
 
                new const
 
                        g_FileName[]    = "roundsound",  // Name of the main file if no files is found in 'g_FileFolder'.
                        g_FileFolder[]  = "round_sound",        // Name of the directory in amxmodx/configs/ for per-map files.
                        g_FilePrefix[]  = "ini",                        // File extension used for the files.
                        g_CmdChat[]      = "/roundsound";       // Chat command for player.
 
 
        /* ========================= [ "END" AERA FOR CHANGES ] ========================= */
 
 
 
        // - - - - - - - - - - - - - - - - - - - - - - -
 
        #define MAX_PLAYERS  32
        #define TASKID_ADS   1333
        #define SIZE_FILE       0
        #define NULL            -1
 
        new
                bool:g_pHeardSound[ MAX_PLAYERS + 1 ],
 
                #if !defined old_amxx
                        Array:g_lstSoundCT,
                        Array:g_lstSoundT,
                #endif
 
                p_enabled,
                p_player_toggle,
                p_time_ads,
                p_random_precache,
 
                g_sRp_value[12],
                g_msgSayText;
 
 
        enum _:e_Team
        {
                T = 0,
                CT,
        };
 
        new g_nSnd[ e_Team ];
 
        #if defined old_amxx
                new g_sTeam_sounds[ MAX_SOUNDS ][ e_Team ][ MAX_FILE_LENGTH ];
                #define charsmax(%1)  sizeof( %1 ) - 1
        #endif
 
        #define _is_wav(%1)  equali( %1[strlen( %1 ) - 4 ], ".wav" )
 
        // - - - - - - - - - - - - - - - - - - - - - - -
 
 
        public plugin_precache()
        {
                register_dictionary( "end_roundsound.txt" );
 
                if( ( p_random_precache = get_cvar_pointer( "erc_random_precache" ) ) )
                        get_pcvar_string( p_random_precache, g_sRp_value, charsmax( g_sRp_value ) );
 
                if( !p_random_precache )
                        return;
 
                #if !defined old_amxx
                        g_lstSoundCT = ArrayCreate( MAX_FILE_LENGTH );
                        g_lstSoundT  = ArrayCreate( MAX_FILE_LENGTH );
                #endif
 
                loading_file();
        }
 
 
        public plugin_init()
        {
                register_plugin( PLUGIN, VERSION, AUTHOR );
                register_cvar( "ers_version", VERSION, FCVAR_SERVER | FCVAR_SPONLY );
 
                register_event( "SendAudio", "eT_win" , "a", "2&%!MRAD_terwin" );
                register_event( "SendAudio", "eCT_win", "a", "2&%!MRAD_ctwin"  );
 
                p_enabled                = register_cvar( "ers_enabled"         , "1"   );
                p_player_toggle   = register_cvar( "ers_player_toggle"  , "1"   );
                p_time_ads              = register_cvar( "erc_time_ads"    , "120" );
 
                if( !p_random_precache )
                {
                        register_cvar( "erc_random_precache", g_sRp_value );
                        server_cmd( "restart" );
                }
 
                register_clcmd( "say"      , "cmd_Say" );
                register_clcmd( "say_team"  , "cmd_Say" );
 
                g_msgSayText = get_user_msgid( "SayText" );
        }
 
 
        public client_authorized( id )
                g_pHeardSound[id] = true;
 
 
        public client_disconnect( id )
        {
                g_pHeardSound[id] = true;
                remove_task( id + TASKID_ADS );
        }
 
 
        public client_putinserver( id )
        {
                new Float:time = get_pcvar_float( p_time_ads );
 
                if( !time )
                        return;
 
                remove_task( id + TASKID_ADS );
                set_task( time, "show_ads", id + TASKID_ADS, _, _, "b" );
        }
 
 
        public show_ads( taskid )
        {
                new id = taskid - TASKID_ADS;
                ShowPrint( id, "%L", id, "ERS_DISPLAY_ADS", g_CmdChat );
        }
 
 
        public cmd_Say( id )
        {
                if( !get_pcvar_num( p_enabled ) )
                        return PLUGIN_CONTINUE;
 
                static sMsg[64];
                read_argv( 1, sMsg, charsmax( sMsg ) );
 
                if( equali( sMsg, g_CmdChat ) )
                {
                        if( !get_pcvar_num( p_player_toggle ) )
                        {
                                ShowPrint( id, "%L", id, "ERS_CMD_DISABLED" );
                                return PLUGIN_HANDLED;
                        }
 
                        g_pHeardSound[id] = g_pHeardSound[id] ? false : true;
                        ShowPrint( id, "%L", id, g_pHeardSound[id] ? "ERS_SOUND_ENABLED" : "ERS_SOUND_DISABLED" );
 
                        return PLUGIN_HANDLED;
                }
 
                return PLUGIN_CONTINUE;
        }
 
 
        public eT_win()
        {
                if( !g_nSnd[ e_Team:T ] )
                        return;
 
                play_sound( e_Team:T );
        }
 
 
        public eCT_win()
        {
                if( !g_nSnd[ e_Team:CT ] )
                        return;
 
                play_sound( e_Team:CT );
        }
 
 
        play_sound( iTeam )
        {
                static
        //  - - - - - - - - - - - - - - - -
                        sCurSnd[ MAX_FILE_LENGTH ];
        //  - - - - - - - - - - - - - - - -
 
                new iRand;
 
                if( g_nSnd[ iTeam ] > 1 )
                        iRand = random( g_nSnd[ iTeam ] );
 
                #if defined old_amxx
                        copy( sCurSnd, MAX_FILE_LENGTH - 1, g_sTeam_sounds[ iRand ][ iTeam ] );
                #else
                        ArrayGetString( iTeam == CT ? g_lstSoundCT : g_lstSoundT, iRand, sCurSnd, MAX_FILE_LENGTH - 1 );
                #endif
 
                _is_wav( sCurSnd ) ?
 
                         format( sCurSnd, MAX_FILE_LENGTH - 1, "spk %s", sCurSnd[6] ) :
                         format( sCurSnd, MAX_FILE_LENGTH - 1, "mp3 play %s", sCurSnd );
 
                if( get_pcvar_num( p_player_toggle ) )
                {
                        static
                //  - - - - - - - - - - -
                                iPlayers[32],
                                iNum, pid;
                //  - - - - - - - - - - -
 
                        get_players( iPlayers, iNum, "c" );
 
                        for( new i; i < iNum; i++ )
                        {
                                pid = iPlayers[i];
 
                                if( !g_pHeardSound[pid] || is_user_bot( pid ) )
                                        continue;
 
                                client_cmd( pid, "%s", sCurSnd );
                        }
                }
                else
                        client_cmd( 0, "%s", sCurSnd );
        }
 
 
        get_prefix( sMap[], iLen_map, sMapType[], iLen_type )
        {
                new
        //  - - - - - - - - -
                        sRest[32];
        //  - - - - - - - - -
 
                get_mapname( sMap, iLen_map );
                strtok( sMap, sMapType, iLen_type, sRest, charsmax( sRest ), '_', 1 );
        }
 
 
        loading_file()
        {
                static
        //  - - - - - - - - - - - - - - - - -
                        sPath[ MAX_FILE_LENGTH ],
        //        |
                        sConfigsDir[64],
                        sPrefix[6],
                        sMap[32];
        //  - - - - - - - - - - - - - - - - -
 
                get_prefix( sMap, charsmax( sMap ), sPrefix, charsmax( sPrefix ) );
                get_configsdir( sConfigsDir, charsmax( sConfigsDir ) );
 
 
                new bool:bFound;
 
                for( new i = 1; i <= 3; i++ )
                {
                        switch( i )
                        {
                                case 1 : formatex( sPath, charsmax( sPath ), "%s/%s/prefix-%s.%s", sConfigsDir, g_FileFolder, sPrefix, g_FilePrefix );
                                case 2 : formatex( sPath, charsmax( sPath ), "%s/%s/%s.%s", sConfigsDir, g_FileFolder, sMap, g_FilePrefix );
                                case 3 : formatex( sPath, charsmax( sPath ), "%s/%s.%s", sConfigsDir, g_FileName, g_FilePrefix );
 
                                default : break;
                        }
 
                        if( !CheckFile( sPath ) )
                                continue;
 
                        bFound = true;
                        break;
                }
 
                log_amx( "---" );
 
                bFound ?
                        log_amx( "%L", LANG_SERVER, "ERS_LOG_LOADING", sPath ) :
                        log_amx( "%L", LANG_SERVER, "ERS_LOG_NO_FILES_FOUND" );
 
                load_sound( sPath );
        }
 
 
        load_sound( const file[] )
        {
                new
        //  - - - - - - - - - - - - - - -
                        sBuffer[256],
        //        |
                        sLeft[ MAX_FILE_LENGTH ],
                        sRight[4],
                        sExt[6],
        //        |
                        eTeam;
        //  - - - - - - - - - - - - - - -
 
                new fp = fopen( file, "rt" );
 
                while( !feof( fp ) )
                {
                        fgets( fp, sBuffer, charsmax( sBuffer ) );
 
                        trim( sBuffer );
 
                        if( !sBuffer[0] || sBuffer[0] == ';' || ( sBuffer[0] == '/' && sBuffer[1] == '/' ) )
                                continue;
 
                        if( sBuffer[0] != '"' || strlen( sBuffer  ) < 11 )
                                continue;
 
                        parse( sBuffer, sLeft, charsmax( sLeft ), sRight, charsmax( sRight ) );
                        formatex( sExt, charsmax( sExt ), sLeft[ strlen( sLeft ) - 4 ] );
 
                        if( equali( sExt, ".mp3" ) == -1 || equali( sExt, ".wav" ) == -1 )
                        {
                                log_amx( "%L", LANG_SERVER, "ERS_LOG_UNKNOW_EXTENSION", sExt );
                                continue;
                        }
 
                        if( !file_exists( sLeft ) )
                        {
                                log_amx( "%L", LANG_SERVER, "ERS_LOG_INEXISTENT_FILE", sLeft );
                                continue;
                        }
 
                        eTeam = NULL;
 
                        if( equali( sRight, "CT" ) )
                                eTeam = CT;
 
                        else if( equali( sRight, "T" ) )
                                eTeam = T;
 
                        if( eTeam == NULL )
                        {
                                log_amx( "%L", LANG_SERVER, "ERS_LOG_NO_TEAM_SOUND", sLeft );
                                continue;
                        }
 
                        #if defined old_amxx
                                copy( g_sTeam_sounds[ g_nSnd[ eTeam ] ][ eTeam ], MAX_FILE_LENGTH - 1, sLeft );
                        #else
                                ArrayPushString( eTeam == CT ? g_lstSoundCT : g_lstSoundT, sLeft );
                        #endif
 
                        ++g_nSnd[ eTeam ];
                }
                fclose( fp );
 
                if( g_nSnd[ e_Team:T ] > 1 || g_nSnd[ e_Team:CT ] > 1 )
                {
                                new iMax_t, iMax_ct;
                                GetPrecacheValue( iMax_t, iMax_ct );
 
                                #if defined old_amxx
                                        UpdateArray( iMax_t, e_Team:T );
                                        UpdateArray( iMax_ct, e_Team:CT );
                                #else
                                        p_DeleteRandomItem( iMax_t , e_Team:T , g_lstSoundT  );
                                        p_DeleteRandomItem( iMax_ct, e_Team:CT, g_lstSoundCT );
                                #endif
                }
 
                log_amx( "---" );
 
                #if defined _DEBUG
                        log_amx( "[ Loading %d CTs Sounds ]", g_nSnd[ e_team:CT ] );
                #endif
                #if defined old_amxx
                        PrecacheSounds( e_Team:CT );
                #else
                        PrecacheSounds_n( g_lstSoundCT );
                #endif
 
                #if defined _DEBUG
                         log_amx( "[ Loading %d Ts Sounds ]", g_nSnd[ e_team:T ] );
                #endif
                #if defined old_amxx
                        PrecacheSounds( e_Team:T );
                #else
                        PrecacheSounds_n( g_lstSoundT );
                #endif
        }
 
 
        GetPrecacheValue( &iMax_t, &iMax_ct )
        {
                trim( g_sRp_value );
                new pos = contain( g_sRp_value, "-" );
 
                if( pos > 0 )
                {
                        iMax_ct = str_to_num( g_sRp_value[ pos + 1 ] )
                        g_sRp_value[ pos ] = '^0';
                        iMax_t = str_to_num( g_sRp_value );
                }
                else
                {
                        iMax_t  = str_to_num( g_sRp_value );
                        iMax_ct = iMax_t;
                }
        }
 
 
        stock UpdateArray( iMax, iTeam )
        {
                new const iCnt_sound = g_nSnd[ iTeam ];
 
                if( !iMax || iMax == iCnt_sound )
                        return;
 
                if( iMax