Raised This Month: $ Target: $400
 0% 

Task problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-06-2013 , 18:55   Task problem
Reply With Quote #1

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
__________________
Jhob94 is online now
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-06-2013 , 22:43   Re: Task problem
Reply With Quote #2

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.
__________________
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 09-08-2013 , 13:05   Re: Task problem
Reply With Quote #3

Map never changes. And i dont understand the issue too

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

Last edited by Jhob94; 09-08-2013 at 13:06.
Jhob94 is online now
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 19:03.


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