Raised This Month: $ Target: $400
 0% 

set task doesnt want to work.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 03-21-2006 , 23:43   set task doesnt want to work.
Reply With Quote #1

Im having trouble with this plugin. I want it to check a players time spent on a server. Now for the sake of testing, that value is 15 seconds.

When I use a set_task to check a players time every second, it doesnt do anything when a players time gets to 15 seconds. But if I use client_PreThink instead, it works. Now I would use client_prethink, but it executed the code 40-50 times, which I dont want, as I want it to play a sound also and it gets quite loud.

So I wanted to know why client_prethink works in this case, but set_task doesnt.


Edit - Problem solved. Attachments removed, no longer needed.
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
 



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 16:32.


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