05.09.2014, 18:49
Quote:
![]() JM_Millers What Is The Problem ? This Model Is Better Form GetPlayerWeapon ! I Use This For My own server. |
You could use one char-array instead of 40 MAX_PLAYERS variables.
Also, 500 milliseconds is too small, I think it'll be better with 100 milliseconds.
So, you've got 40 if-statements, while you can got 1 (if you used an array).
And at the eng, the loop is doing 500-1000 iterations per 0.5 seconds, it's too bad.