|
Author
|
Message
|
|
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
|

03-21-2006
, 23:43
set task doesnt want to work.
|
#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
|
|
|
|