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

If a one sound is reproduce once, no more reproduced?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kam3n1tza
Member
Join Date: Jul 2011
Old 01-29-2015 , 09:28   If a one sound is reproduce once, no more reproduced?
Reply With Quote #1

Is it possible to check if a one sound is reproduce once, no more reproduced?
I create set_task, which is repeated in 1 sec, and the sound is 3 sec., but because task repeat the sound again and again only the first word was able to speak...
kam3n1tza is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 01-29-2015 , 09:46   Re: If a one sound is reproduce once, no more reproduced?
Reply With Quote #2

Set a bool to 'true', when the sound is played for the first time and then check for the bool and don't play the sound if it's 'true'.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-29-2015 , 10:04   Re: If a one sound is reproduce once, no more reproduced?
Reply With Quote #3

Lol, simply set the task at 3.0 seconds.
__________________
HamletEagle 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:26.


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