Raised This Month: $51 Target: $400
 12% 

[Solved] Round Start Sound Plugin...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-24-2007 , 23:04   [Solved] Round Start Sound Plugin...
Reply With Quote #1

Basically I need help with a round start plugin...
Like when a round begins a sound is played.
You can set the sound as whatever you want.\

Thnx in advance
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!

Last edited by BioI-Iazard; 03-27-2007 at 00:50.
BioI-Iazard is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 03-24-2007 , 23:06   Re: Round Start Sound Plugin...
Reply With Quote #2

here ya go

Code:
#include <amxmodx> #include <amxmisc>   public plugin_init() { register_plugin("new round sound", "1.0", "BioI-Iazard") register_logevent("event_new_round",2,"0=World triggered","1=Round_Start") } public event_new_round(id) { client_cmd(0, "spk misc/EDIT.wav") return PLUGIN_CONTINUE }   public plugin_precache() { precache_sound("misc/EDIT.wav") }

EDIT: made a mistake with the sound file

Last edited by flyeni6; 03-25-2007 at 00:11. Reason: mp3 mistake lol
flyeni6 is offline
Send a message via AIM to flyeni6
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-24-2007 , 23:33   Re: Round Start Sound Plugin...
Reply With Quote #3

and to make the sound precache i add this to the bottom correct?

public plugin_precache()
{
precache_sound("misc/EDIT.wav")
}
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 03-24-2007 , 23:50   Re: Round Start Sound Plugin...
Reply With Quote #4

yae here is the updated code if anyone wants it

Code:
#include <amxmodx> #include <amxmisc>   public plugin_init() { register_plugin("new round sound", "1.0", "BioI-Iazard") register_logevent("event_new_round",2,"0=World triggered","1=Round_Start") } public event_new_round(id) { client_cmd(0, "spk misc/EDIT.wav") return PLUGIN_CONTINUE }   public plugin_precache() { precache_sound("misc/EDIT.wav") }

Last edited by flyeni6; 03-25-2007 at 00:11.
flyeni6 is offline
Send a message via AIM to flyeni6
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-24-2007 , 23:57   Re: Round Start Sound Plugin...
Reply With Quote #5

wont compile
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-25-2007 , 00:03   Re: Round Start Sound Plugin...
Reply With Quote #6

PHP Code:
#include <amxmodx> 
 
public plugin_init()
{    
    
register_plugin("","","");
    
register_logevent("event_new_round",2,"0=World triggered","1=Round_Start");
}
 
public 
event_new_round(id)
    
client_cmd(0"spk misc/EDIT.wav");


public 
plugin_precache()
    
precache_sound("misc/EDIT.wav"); 
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 03-25-2007 , 00:08   Re: Round Start Sound Plugin...
Reply With Quote #7

lol i was about to edit my file

I cant belive plugin_int was missing


but i already updated the code an sent it thru PM
flyeni6 is offline
Send a message via AIM to flyeni6
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-25-2007 , 15:10   Re: Round Start Sound Plugin...
Reply With Quote #8

the plugin isnt working... like when the round starts the sound doesnt play...
anybody know why??
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 03-25-2007 , 15:32   Re: Round Start Sound Plugin...
Reply With Quote #9

Quote:
Originally Posted by BioI-Iazard View Post
the plugin isnt working... like when the round starts the sound doesnt play...
anybody know why??
Did you edit sounds name on the code? And do you have sounds sound/misc ?
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
BioI-Iazard
Senior Member
Join Date: Sep 2005
Location: Calgary, Alberta
Old 03-25-2007 , 15:34   Re: Round Start Sound Plugin...
Reply With Quote #10

yes i did all of that... the sound downloads and everything wen i connect to server...
wich code is the better one samuria's or the other guys lol
__________________
Loved by Many ....
Hated by Some ....
Respected by All !!!!
BioI-Iazard is offline
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 16:11.


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