Raised This Month: $ Target: $400
 0% 

help code...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-07-2011 , 08:31   help code...
Reply With Quote #1

If theres anyway to stop playing a sound from emit_sound(...) native?
__________________
Snaker beatter is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2011 , 08:55   Re: help code...
Reply With Quote #2

use SND_STOP flag.
__________________
Arkshine is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-07-2011 , 09:01   Re: help code...
Reply With Quote #3

In what native arkshine?
__________________
Snaker beatter is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2011 , 09:01   Re: help code...
Reply With Quote #4

emit_sound.

The before last param, it's for flags.

Available flags are (from amxconst.inc) :

Code:
#define SND_SPAWNING		(1<<8)		// we're spawing, used in some cases for ambients 
#define SND_STOP		(1<<5)		// stop sound
#define SND_CHANGE_VOL		(1<<6)		// change sound vol
#define SND_CHANGE_PITCH	(1<<7)		// change sound pitch
__________________

Last edited by Arkshine; 12-07-2011 at 09:02.
Arkshine is offline
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 12-07-2011 , 09:18   Re: help code...
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
emit_sound.

The before last param, it's for flags.

Available flags are (from amxconst.inc) :

Code:
#define SND_SPAWNING		(1<<8)		// we're spawing, used in some cases for ambients 
#define SND_STOP		(1<<5)		// stop sound
#define SND_CHANGE_VOL		(1<<6)		// change sound vol
#define SND_CHANGE_PITCH	(1<<7)		// change sound pitch
Thanks i need this too
__________________
Isaac999 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-07-2011 , 09:04   Re: help code...
Reply With Quote #6

OKay will test thanks
__________________
Snaker beatter 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 11:47.


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