Raised This Month: $ Target: $400
 0% 

The plugin doesnt show the hud msg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-23-2011 , 09:10   Re: The plugin doesnt show the hud msg
Reply With Quote #6

That's what the set_task() is for... add a repeatitive task ("b" flag, you're using it already) at the start of plugin, check your stuff and then send the hud message to everybody.

You also might want to extend the HUD message duration and/or reduce the task delay... a 1.0 for both should be enough for counting down seconds.

That client_PreThink is verry WRONG here, it's called dozen of times per second for each player... and you're sending a message to all players from each player's prethink... imagine how much useless traffic you're adding.
__________________

Last edited by Hunter-Digital; 06-23-2011 at 09:14.
Hunter-Digital is offline
 



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:32.


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