Raised This Month: $344 Target: $400
 86%   Almost there!

Delete this please


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-26-2010 , 08:47   Delete this please
Reply With Quote #1

Delete this please
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 04-26-2010 at 09:54.
drekes is offline
Send a message via MSN to drekes
Sylwester
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.
Quote:
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
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-26-2010 , 09:42   Re: Players Hud
Reply With Quote #3

i tryed it with bots and it did'nt count the bots

and i tryed it with cvars but it didn't work, could you give me an example how to do it with cvars
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 04-26-2010 at 09:45.
drekes is offline
Send a message via MSN to drekes
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 04-26-2010 , 09:47   Re: Players Hud
Reply With Quote #4

That's because your plugin counts only first player and noone else.
__________________
Impossible is Nothing
Sylwester is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-26-2010 , 09:54   Re: Delete this please
Reply With Quote #5

nevermind, i give up
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 04-26-2010 , 10:48   Re: Delete this please
Reply With Quote #6

The note was correct as the plugin didn't support bots. Ham_Spawn was enabled only for game classname "player" so not for CZ bots.
SnoW is offline
Send a message via MSN to SnoW
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:57.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode