View Single Post
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 04-26-2010 , 09:16   Re: Players Hud
Reply With Quote #2

You should learn some basics about scripting before releasing anything here.

You forgot about brackets { } in that for(..) loop.

You create new variables in a loop (actually right now you don't do that because brackets are missing).

You create endless task every time when player spawns or dies while it would be enough to create it only one time in plugin_init.

Your task interval is 1 second, but you didn't set hud_message holdtime to 1 second (default is 12 seconds).

If you hook spawn and death then you could cache is_user_alive and player team or even amount of players alive.

You shouldn't ask users to customize colors by changing code. It should be done with cvars.
Originally Posted by drekes View Post
NOTE: This does not support bots.
What do you mean?
Impossible is Nothing

Last edited by Sylwester; 04-26-2010 at 09:22.
Sylwester is offline