Raised This Month: $ Target: $400
 0% 

Not working correctly


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 05-16-2009 , 14:58   Re: Not working correctly
Reply With Quote #4

Quote:
Originally Posted by abyssss View Post
Edit: found.. It was ^n

And plugin is still laggy

Edit2: I found the cause of big ping..

PHP Code:
public client_PreThink(id)
{
    
set_hudmessage(2552552550.00.1500.0330.0330.0330.0331)
    
show_hudmessage(0"Contender's")
    
set_hudmessage(255000.00.2000.0330.0330.0330.0332)
    
show_hudmessage(0" %s - %i ^n %s - %i ^n %s - %i ^n %s - %i ^n %s - %i",rn[0], playerscore[teamred[0]], rn[1], playerscore[teamred[1]], rn[2], playerscore[teamred[2]], rn[3], playerscore[teamred[3]], rn[4], playerscore[teamred[4]] )
    
set_hudmessage(002550.00.4500.0330.0330.0330.0333)
    
show_hudmessage(0" %s - %i ^n %s - %i ^n %s - %i ^n %s - %i ^n %s - %i",bn[0], playerscore[teamblue[0]], bn[1], playerscore[teamblue[1]], bn[2], playerscore[teamblue[2]], bn[3], playerscore[teamblue[3]], bn[4], playerscore[teamblue[4]] )
    
set_hudmessage(2552552550.690.1500.0330.0330.0330.0334)
    
show_hudmessage(id"Gladiator's ^n^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i ^n%s - %i",gn[0],playerscore[teamglad[0]],gn[1],playerscore[teamglad[1]],gn[2],playerscore[teamglad[2]],gn[3],playerscore[teamglad[3]],gn[4],playerscore[teamglad[4]],gn[5],playerscore[teamglad[5]],gn[6],playerscore[teamglad[6]],gn[7],playerscore[teamglad[7]],gn[8],playerscore[teamglad[8]],gn[9],playerscore[teamglad[9]])
 

Are there any good settings for set_hudmessage to stop that hud to lag?
Don't set up a hud in client_PreThink, because it's called 30 times per second.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath 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 01:30.


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