Posts: 666
Threads: 94
Joined: Aug 2009
Reputation:
0
If i made a timer to heal everybody on server every 1 second, would this cause to much CPU usage? (20-50 players)
Also, is there a way to heal every 100MS? like.. SetTimer("Healall", 500, 1); ? or would that cause to much lag?
Posts: 548
Threads: 72
Joined: Nov 2009
Reputation:
0
Yup, try it urself, depends of the CPU and ur script and ur NPC's!
Posts: 1,466
Threads: 7
Joined: Jun 2009
Reputation:
0
Just use OnPlayerLoseHealth function to detect loose of HP and then heal them easier.
Posts: 666
Threads: 94
Joined: Aug 2009
Reputation:
0
would make it under a timer? or onplayerupdate? Directed @ ******.
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Check out YUP, I think that's where you got that function from.
It's anyways easy to make yourself actually.