View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 03-05-2010 , 09:06   Re: [TF2] Locker Overheal
Reply With Quote #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 is offline