Raised This Month: $ Target: $400
 0% 

[Solved] Round Start Sound Plugin...


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2007 , 15:28   Re: Round Start Sound Plugin...
Reply With Quote #31

Sure.

I've tested again. It works fine...

Maybe your sound is bad. So can you attach this sound ?
__________________
Arkshine is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-26-2007 , 16:03   Re: Round Start Sound Plugin...
Reply With Quote #32

here is the sound...
i have an mp3 version as well that is much smaller and is in its original format.
the wav one has been converted from the mp3 one i got.
if possible wat do i change in the code to make it mp3? just the .wav extension to.mp3???
Attached Files
File Type: rar ggw.rar (107.5 KB, 524 views)
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2007 , 16:42   Re: Round Start Sound Plugin...
Reply With Quote #33

Try this. Tested & it works.
Attached Files
File Type: sma Get Plugin or Get Source (Roundstart_sound.sma - 1415 views - 899 Bytes)
__________________
Arkshine is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-26-2007 , 17:16   Re: Round Start Sound Plugin...
Reply With Quote #34

just tried by configuring it like this...
this one is for the .mp3 file right not the wav?

Code:
#include <amxmodx> new const lstSound[][] = { "misc/ggw.mp3" }; public plugin_init() {     register_plugin( "Round Start Sound", "1.0", "AMXX Community" );     register_event( "HLTV", "event_new_round", "a", "1=0", "2=0" ); } public plugin_precache() {     new CurSnd[128];         copy( CurSnd, 127, lstSound[0] );     format( CurSnd, 127, "sound/%s", CurSnd );                             if ( equali( CurSnd[strlen(CurSnd)-4], "ggw.mp3" ) )       {         if ( file_exists( CurSnd ) )             precache_generic( CurSnd );     }     else           {         if ( file_exists( CurSnd ) )             precache_sound( CurSnd[6] );     } } public event_new_round() {     new CurSnd[128];         copy( CurSnd, 127, lstSound[0] );     format( CurSnd, 127, "sound/%s", CurSnd );         if( equali( CurSnd[strlen( CurSnd ) - 4 ], "ggw.mp3" ) )         client_cmd( 0, "mp3 play %s", CurSnd )     else         client_cmd( 0, "spk %s", CurSnd[6] )         }
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2007 , 18:20   Re: Round Start Sound Plugin...
Reply With Quote #35

.mp3 or .wav.

Change only here please : new const lstSound[][] = { "misc/ggw.mp3" };

misc/test.wav
misc/test.mp3
music/bleh.wav
blabla/blabla/belh.mp3
...
As you want. sound/ being the root folder.
__________________

Last edited by Arkshine; 03-26-2007 at 18:35.
Arkshine is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-27-2007 , 00:50   Re: Round Start Sound Plugin...
Reply With Quote #36

plugin works like a charm now!!!!!!!
thanks to everybody who put effort in to help me out!
plus karma to all who tried to help!

Thanks again!!!!!!!!
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
bestkings
New Member
Join Date: Dec 2007
Old 10-20-2010 , 05:17   Re: [Solved] Round Start Sound Plugin...
Reply With Quote #37

I need help !
I have alot sounds but I want just play random each sound in each round start
And please support mp3/wav
bestkings is offline
redpanama
Member
Join Date: Mar 2009
Location: KGB
Old 07-28-2011 , 02:35   Re: Round Start Sound Plugin...
Reply With Quote #38

Code:
include <amxmodx>

#define SOUND "misc/sound_test.wav"

public plugin_init() 
{
    register_plugin("Round Start Sound", "1.0", "AMXX Community")
    register_logevent("logevent_round_start", 2, "1=Round_Start")
}

public plugin_precache()    
    precache_sound( SOUND )

public logevent_round_start()
    client_cmd(0, "spk %s", SOUND)

How to add client_cmd (0, "stopsound") before round start sound is played?
__________________

Last edited by redpanama; 07-28-2011 at 02:37.
redpanama is offline
Diva
Member
Join Date: Aug 2012
Location: Denmark
Old 07-03-2013 , 23:57   Re: [Solved] Round Start Sound Plugin...
Reply With Quote #39

Okay well now i could use some help for this one right now because i can't seem to make this work at all
i tried my sound file as a MP3 and even converted it to wav file trying it like that but didnt work at all.

My sound file is playing for 10 seconds, and i want to se my freeze time for 8.5 seconds,
that would be around where it stops and team says: OkayLets Move out

The file is downloading but its not playing.
so not working :c

(THIS IS FOR A CSDM CS 1.6 SERVER)

So.. the sma file looks like this:
PHP Code:
#include <amxmodx>

new const lstSound[][] = { "misc/klimaxsound3.mp3" };

public 
plugin_init() 
{
    
register_plugin"Round Start Sound""1.0""AMXX Community" );
    
register_event"HLTV""event_new_round""a""1=0""2=0" );
}

public 
plugin_precache() 
{
    new 
CurSnd[128];
    
    
copyCurSnd127lstSound[0] );
    
formatCurSnd127"sound/%s"CurSnd );    
                    
    if ( 
equaliCurSnd[strlen(CurSnd)-4], "klimaxsound3.mp3" ) )   
    {
        if ( 
file_existsCurSnd ) )
            
precache_genericCurSnd );
    }
    else      
    {
        if ( 
file_existsCurSnd ) )
            
precache_soundCurSnd[6] ); 
    }
}

public 
event_new_round()
{
    new 
CurSnd[128];
    
    
copyCurSnd127lstSound[0] );
    
formatCurSnd127"sound/%s"CurSnd ); 
    
    if( 
equaliCurSnd[strlenCurSnd ) - ], "klimaxsound3.mp3" ) )
        
client_cmd0"mp3 play %s"CurSnd )
    else
        
client_cmd0"spk %s"CurSnd[6] )
        

OH NEVERMIND i see what my mistake was. i should have left the if ( equali( CurSnd[strlen(CurSnd)-4], "klimaxsound3.mp3" ) ) with .mp3 only, MY BAD ;D
i didnt quite understand that but now i do! works like a charm! thaank you for this !

Last edited by Diva; 07-04-2013 at 00:10.
Diva is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 08-24-2021 , 06:25   Re: [Solved] Round Start Sound Plugin...
Reply With Quote #40

Does anyone know a plugin with which I can replace round strats sounds with others and which can block the original ones. And to work as the original sounds work and be heard when they are heard ?
Siska1 is offline
Send a message via Skype™ to Siska1
Reply



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 06:00.


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