Raised This Month: $ Target: $400
 0% 

permanent dhudmessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-07-2011 , 05:31   permanent dhudmessage
Reply With Quote #1

I have this plugin:

PHP Code:
#include         <amxmodx>
#include         <amxmisc>
#include        <dhudmessage>

#define PLUGIN        "HudStat"
#define AUTHOR        "AloneLive"
#define VERSION        "0.1"

new gMaxPlayers;



public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
    
gMaxPlayers get_maxplayers();
    
set_task(0.1,"hud_hpap""b"
}

public 
hud_hpap() {
    for( new 
id 1id <= gMaxPlayersid++ ) {
        if( 
is_user_alive(id) ) {
            
set_dhudmessage(016000.00.9510.10.10.10.1true);
            
show_dhudmessage(id"  + %i   |   @ %i   |   Фраги:   %i   |   Смерти   %i"get_user_health(id), get_user_armor(id), get_user_frags(id), get_user_deaths(id))
        }
    }

but message flickers sometimes.. How to make the message permanent?
Default hp and armor sprites removed by hud_customizer plugin.
__________________
sorry my bad english...
alonelive is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-07-2011 , 06:02   Re: permanent dhudmessage
Reply With Quote #2

Try :

set_dhudmessage(0, 160, 0, 0.0, 0.95, 0, 0.000001, 0.100001, 0.000001, 0.000001, true);
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-07-2011 , 07:18   Re: permanent dhudmessage
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Try :

set_dhudmessage(0, 160, 0, 0.0, 0.95, 0, 0.000001, 0.100001, 0.000001, 0.000001, true);
mmm... i think.... what about CPU usage? 0.000001 is too small..
Or Not?
__________________
sorry my bad english...
alonelive is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-07-2011 , 13:52   Re: permanent dhudmessage
Reply With Quote #4

Quote:
Originally Posted by alonelive View Post
mmm... i think.... what about CPU usage? 0.000001 is too small..
Or Not?
I haven't told you to change task time, btw 0.1 is the minimum.
I think you have missed the 0.100001 hodtime i put.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 08-07-2011 , 08:32   Re: permanent dhudmessage
Reply With Quote #5

already done I think, Permanent message.
__________________
ANTICHRISTUS is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 08-07-2011 , 08:33   Re: permanent dhudmessage
Reply With Quote #6

Quote:
Originally Posted by ANTICHRISTUS View Post
already done I think, Permanent message.
I think that still makes it Flicker though. I used to have same problem that he is having also.
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 08-07-2011 , 08:46   Re: permanent dhudmessage
Reply With Quote #7

I need a DHUD MSG
SyncHud msg has too
little SYMBOLS.
__________________
sorry my bad english...

Last edited by alonelive; 08-07-2011 at 08:55.
alonelive is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 08-08-2011 , 06:24   Re: permanent dhudmessage
Reply With Quote #8

Here this should work.
PHP Code:
#include         <amxmodx>
#include         <amxmisc>
#include        <dhudmessage>

#define PLUGIN        "HudStat"
#define AUTHOR        "AloneLive"
#define VERSION        "0.1"

new gMaxPlayers;



public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
    
gMaxPlayers get_maxplayers();
    
set_task(0.1,"hud_hpap""b"
}

public 
hud_hpap() {
    for( new 
id 1id <= gMaxPlayersid++ ) {
        if( 
is_user_alive(id) ) {
            
set_dhudmessage(016000.00.9501.01.0 );
            
show_dhudmessage(id"  + %i   |   @ %i   |   ?????:   %i   |   ??????   %i"get_user_health(id), get_user_armor(id), get_user_frags(id), get_user_deaths(id))
        }
    }

__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
Reply



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 03:24.


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