Raised This Month: $ Target: $400
 0% 

[Roundstart Sound]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stevenisecko138
Senior Member
Join Date: Dec 2008
Location: CA
Old 01-22-2010 , 21:31   Re: [Roundstart Sound]
Reply With Quote #1

here it goes
PHP Code:
#include <amxmodx>
 #include <amxmisc>

#define PLUGIN "Round start sound"
#define VERSION "1.0"
#define AUTHOR "EcKo"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("eventRoundend"2"1=Round_Start");

}
public 
eventRoundend()
{
    new 
rand random_num(0,2)

    
client_cmd(0,"stopsound")

    switch(
rand)
{
    case 
0client_cmd(0,"spk ER/spawn")
    }
}
public 
plugin_precache() 
{
  
precache_sound("ER/spawn.wav")

stevenisecko138 is offline
Send a message via AIM to stevenisecko138
stevenisecko138
Senior Member
Join Date: Dec 2008
Location: CA
Old 01-22-2010 , 22:12   Re: [Roundstart Sound]
Reply With Quote #2

Quote:
Originally Posted by stevenisecko138 View Post
here it goes
PHP Code:
#include <amxmodx>
#include <amxmisc> <---- missed the space

#define PLUGIN "Round start sound"
#define VERSION "1.0"
#define AUTHOR "EcKo"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("eventRoundend"2"1=Round_Start");

}
public 
eventRoundend()
{
    new 
rand random_num(0,2)

    
client_cmd(0,"stopsound")

    switch(
rand)
{
    case 
0client_cmd(0,"spk ER/spawn")
    }
}
public 
plugin_precache() 
{
  
precache_sound("ER/spawn.wav")

stevenisecko138 is offline
Send a message via AIM to stevenisecko138
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 00:40.


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