AlliedModders

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

Jhob94 09-06-2013 18:55

Task problem
 
Hi
Iam using this:
PHP Code:

public client_putinserver(id)
{
    if(!
is_user_bot(id))
        
set_task(10.0"music1"id)
}

public 
music1(id)
{
    
set_task(290.0"music2"id)
    
client_cmd(id"mp3 play sound/zombie_extreme/musics/zextreme_01.mp3")
}

public 
music2(id)
{
    
set_task(350.0"music3"id)
    
client_cmd(id"mp3 play sound/zombie_extreme/musics/zextreme_02.mp3")
}

public 
music3(id)
{
    
set_task(206.0"music4"id)
    
client_cmd(id"mp3 play sound/zombie_extreme/musics/zextreme_03.mp3")
}

public 
music4(id)
{
    
set_task(122.0"music5"id)
    
client_cmd(id"mp3 play sound/zombie_extreme/musics/zextreme_04.mp3")
}

public 
music5(id)
{
    
set_task(140.0"music1"id)
    
client_cmd(id"mp3 play sound/zombie_extreme/musics/zextreme_05.mp3")


It plays the musics, but not with task time. I think when someone goes on some music function it plays and set task to all, not only to the correct entity

fysiks 09-06-2013 22:43

Re: Task problem
 
That code that you posted will only play to the player that was put in the server.

Because of this, I don't understand the issue. The music will play to all players at about the same time when the map changes because everybody is joining at about the same time.

Jhob94 09-08-2013 13:05

Re: Task problem
 
Map never changes. And i dont understand the issue too :3

EDIT: Sorry for the late reply but i wasnt in home, just came now


All times are GMT -4. The time now is 19:03.

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