Would this cause CPU overload?
#1

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?
Reply
#2

Try it yourself
Reply
#3

Yup, try it urself, depends of the CPU and ur script and ur NPC's!
Reply
#4

ima try now.. im using serverffs and so far i never have any lag so... lets see
Reply
#5

Just use OnPlayerLoseHealth function to detect loose of HP and then heal them easier.
Reply
#6

would make it under a timer? or onplayerupdate? Directed @ ******.
Reply
#7

Quote:
Originally Posted by www.******.com
Just use OnPlayerLoseHealth function to detect loose of HP and then heal them easier.
There isn't a "OnPlayerLoseHealth" Function.
Reply
#8

Quote:
Originally Posted by Chris - X-Host
Quote:
Originally Posted by www.******.com
Just use OnPlayerLoseHealth function to detect loose of HP and then heal them easier.
There isn't a "OnPlayerLoseHealth" Function.
I do believe sombody made this function though.
Reply
#9

Check out YUP, I think that's where you got that function from.
It's anyways easy to make yourself actually.
Reply
#10

http://forum.sa-mp.com/index.php?topic=41954.0

But it still uses a 100MS timer
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)