Raised This Month: $ Target: $400
 0% 

set_task()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Newbster
Junior Member
Join Date: Feb 2005
Location: San Antonio, Texas
Old 03-15-2005 , 11:56   set_task()
Reply With Quote #1

Code:
temp = float(get_cvar_num("mp_combattime")-5)
set_task(temp,"vote",9678,"",0,"b")
will this code set the function "vote" to execute 5 minutes before game end?
__________________
www.j00s.com (67.95.103.222)
-j00- Public clan server and website
(j00 spelt with two zeros not letters)
Newbster is offline
Send a message via AIM to Newbster
KaOs
Senior Member
Join Date: Apr 2004
Old 03-15-2005 , 12:22  
Reply With Quote #2

Code:
set_task(float(get_cvar_num("mp_combattime")-5), "vote")

That should work
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-15-2005 , 12:26  
Reply With Quote #3

Thats seconds. He needs minutes. It would be -300
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Newbster
Junior Member
Join Date: Feb 2005
Location: San Antonio, Texas
Old 03-15-2005 , 13:05  
Reply With Quote #4

Well, i want it to repeat every time the game time is reset so i need the loop thing. So wait, does the set_task timer time in seconds or minutes?
__________________
www.j00s.com (67.95.103.222)
-j00- Public clan server and website
(j00 spelt with two zeros not letters)
Newbster is offline
Send a message via AIM to Newbster
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-15-2005 , 15:43  
Reply With Quote #5

set_task is in seconds.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Newbster
Junior Member
Join Date: Feb 2005
Location: San Antonio, Texas
Old 03-15-2005 , 15:43  
Reply With Quote #6

Thank you, i think i got it.
__________________
www.j00s.com (67.95.103.222)
-j00- Public clan server and website
(j00 spelt with two zeros not letters)
Newbster is offline
Send a message via AIM to Newbster
Reply


Thread Tools
Display Modes

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 14:15.


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