Thread
:
[TF2] Locker Overheal (v1.1 updated 3/19/10)
View Single Post
psychonic
BAFFLED
Join Date: May 2008
03-05-2010 , 09:06 Re: [TF2] Locker Overheal
#
6
@Pawn 3-pg
It looks like you forgot to tag bPluginEnabled as a bool on line 20 since you use it as one.
Also, it would be wiser to pass userid instead of client index through timers because one user could disconnect and another user connect and get same client index during the duration of the timer.
In addition, some slight optimization tips:
You can use Sourcemod's built-in MaxPlayers constant instead of making a call to the GetMaxPlayers() native.
You can use decl instead of new on your arrays (Strings and vectors) since you populate them with data before doing any other operations with them.
psychonic
View Public Profile
Send a private message to psychonic
Visit psychonic's homepage!
Find More Posts by psychonic