Raised This Month: $ Target: $400
 0% 

set_task


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 10-09-2009 , 00:50   set_task
Reply With Quote #1

how can i set a task that when 10 seconds goes after round start it makes a sound ?
DoviuX is offline
Send a message via Skype™ to DoviuX
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 10-09-2009 , 01:00   Re: set_task
Reply With Quote #2

PHP Code:
public plugin_init()
{
          
register_logevent("function"2"1=Round_Start")
}

public function()
{
          
set_task(10.0,"play_sound")
}

public 
play_sound()
{
          
client_cmd(0,"spk sound.wav")

__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!

Last edited by biscuit628; 10-09-2009 at 01:03.
biscuit628 is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 10-09-2009 , 01:11   Re: set_task
Reply With Quote #3

thx +k 4 you
DoviuX is offline
Send a message via Skype™ to DoviuX
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 22:34.


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