07.04.2014, 09:35
Unlikely, but use the profiler plugin to be sure. There IS a lot of room for optimizations, however. Using a switch statement can reduce unnecessary calls to GetPlayerScore by 95%. IsPlayerConnected is also a completely redundant function call because callbacks are obviously only called if the player is connected.
But still, it'd be better to move the score part to a separate function entirely and invoke it whenever you use SetPlayerScore. You could write a hook to do it automatically.
PS: @ChuckyBabe above: use another avatar. Stealing the avatar of a reputable member is frankly just arrogant.
But still, it'd be better to move the score part to a separate function entirely and invoke it whenever you use SetPlayerScore. You could write a hook to do it automatically.
PS: @ChuckyBabe above: use another avatar. Stealing the avatar of a reputable member is frankly just arrogant.