AlliedModders

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

DoviuX 10-09-2009 00:50

set_task
 
how can i set a task that when 10 seconds goes after round start it makes a sound ?

biscuit628 10-09-2009 01:00

Re: set_task
 
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")



DoviuX 10-09-2009 01:11

Re: set_task
 
thx +k 4 you


All times are GMT -4. The time now is 22:34.

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