Posts: 111
Threads: 33
Joined: Feb 2011
Reputation:
0
Hi.. I need advice about timer... I have made my anticheat system and I need to use a timer.. I have few global timer, one of these timers are return every 500 ms and in this function I have call foreach and SetTimerEx for each player to check something ... I need advice is there slow my server and if this way is not the best, can you present me better ...
Sry for bad english, I hope that you understand me... I don't have experience with timer and player... I have make a perfect anticheat but I am Thinking Twice about that...
I want to max optimitize server!
Thanks in advance
Posts: 1
Threads: 0
Joined: Sep 2012
Reputation:
0
What can of anticheat for weapon anticheat i'd use OnPlayerKeyStateChange when they fire that forbidden they get banned.
Posts: 2,169
Threads: 206
Joined: Jul 2010
Reputation:
0
Nova's theory is pretty easy and simple without any timers.
If you'd like to do it with timers follow these steps,
1.Create a callback
2.Set a specific timer on that callback
3.Have all the anticheat stuff weapon hacks, health hack etc (make sure the timer is atleast 2000ms)
Done instead of creating bunch of callbacks.
Posts: 111
Threads: 33
Joined: Feb 2011
Reputation:
0
I have in one callback - Airbreak, Fly hack, Teleport, Weapon ... and some check about area(prison) ...
It works perfect if few players on server, but I don't know is this complicated when I have more and more players ...
sry for bad eng..
Posts: 111
Threads: 33
Joined: Feb 2011
Reputation:
0
Yap... Is there any way to simulate players ?
Posts: 111
Threads: 33
Joined: Feb 2011
Reputation:
0
I know that take more time, that is my problem. I don't know what will happen when I have more and more players.. thats loops are going to be longer(take more time) ... I don't know what to do :/ How to check that..