Raised This Month: $ Target: $400
 0% 

Sound not worked


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-05-2013 , 06:53   Re: Sound not worked
Reply With Quote #6

PHP Code:
#include <amxmodx>
#include <amxmisc>

new const g_songs_names[][] = {
    
"czs.wav",
    
"czd.wav",
    
"cze.wav"
}

public 
plugin_init() {
    
register_plugin("Press""1.0.0""pewex")
    
register_logevent"EventRoundStart"2"1=Round_Start" );
}

public 
plugin_precache() { 
    
precache_sound("misc/czs.wav"
    
precache_sound("misc/czd.wav"
    
precache_sound("misc/cze.wav"


public 
EventRoundStart() {
    
set_task(60.0,"PlaySound")
}

public 
PlaySound() {
    
client_cmd(0"spk misc/%s"g_songs_names[random(sizeof(g_songs_names))]);    

I set 60 secons instead 600.
600 seconds = 10 MIN. Max default round time is 9 min (without special hacks).
__________________
sorry my bad english...

Last edited by alonelive; 01-05-2013 at 06:59.
alonelive 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 13:39.


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