21.08.2016, 23:57
Quote:
Maybe there is a timer, like if the player didn't login in 60seconds he'll be kicked, maybe you'll find something like that
|
The point is about logic checks, and how you're checking certain things.
E.g. when you check in some function for stupid things, when you should be checking the easier options first. Rather than checking a vehicle is a valid model, before checking if the player is in a vehicle in the first instance.
Checking a player for a certain state, before checking the easier, more direct options.
If you have a timer, that has these kind of checks, but in a weird order, it'll cause the server to have issues with that function over time.
In particular the last few times I have seen this problem, it seems to be that they were doing big things with OnPlayerKeyStateChange.
Another area this comes up at is (As you said before) OnPlayerUpdate, OnTrailerUpdate, OnVehicleDamageStatusUpdate, and all those callbacks that can fire at high rates.
So anyway, I think it can be some logic failure in your script, that's causing it to hang and have problems.
Lemme know how that timed test goes.