AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help code... (https://forums.alliedmods.net/showthread.php?t=173570)

Snaker beatter 12-07-2011 08:31

help code...
 
If theres anyway to stop playing a sound from emit_sound(...) native?

Arkshine 12-07-2011 08:55

Re: help code...
 
use SND_STOP flag.

Snaker beatter 12-07-2011 09:01

Re: help code...
 
In what native arkshine?

Arkshine 12-07-2011 09:01

Re: help code...
 
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


Snaker beatter 12-07-2011 09:04

Re: help code...
 
OKay will test thanks :)

Isaac999 12-07-2011 09:18

Re: help code...
 
Quote:

Originally Posted by Arkshine (Post 1609114)
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


All times are GMT -4. The time now is 11:47.

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