Raised This Month: $ Target: $400
 0% 

Hud Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-05-2009 , 10:59   Hud Message
Reply With Quote #1

How do i display hud message by 1 letter per second ? instead of showing the whole hud message ??
Mr.Noobie is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-05-2009 , 12:34   Re: Hud Message
Reply With Quote #2

In set_hudmessage() you have the "write out" effect If I remember well.
__________________
Arkshine is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-06-2009 , 03:40   Re: Hud Message
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
In set_hudmessage() you have the "write out" effect If I remember well.
Thanks to much

I have a problem with the hud message.

Sometime the hud message appear sometime it does not.

Can help me fix it ?

PHP Code:
#include <amxmodx> 

public plugin_init( )  
{  
    
register_plugin"Death Message""1.0""Mr.Noobie" 
    
register_event"DeathMsg""eventDeath""a" )   


public 
eventDeath( ) 

    static 
victim 
    
static victimName32 ], message128 
  
    
victim read_data
  
    
get_user_namevictimvictimName31 
  
    if ( 
victim 
    { 
        
formatexmessagesizeof message 1"Nice try %s."victimName 
        
set_hudmessage225225225, -1.00.2926.012.0 
        
show_hudmessagevictimmessage 
    } 


Last edited by Mr.Noobie; 08-06-2009 at 04:30.
Mr.Noobie is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 04:48   Re: Hud Message
Reply With Quote #4

I see nothing wrong, maybe it's because of another hud message which has overwritten this one in the current channel used.
__________________
Arkshine is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-06-2009 , 05:11   Re: Hud Message
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
I see nothing wrong, maybe it's because of another hud message which has overwritten this one in the current channel used.
Arkshine are you sure it fine ?

Can you test it ?

Cos i try it but sometime it doesn't show. + there was no hud message overwritten.
Mr.Noobie is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-06-2009 , 05:31   Re: Hud Message
Reply With Quote #6

3 parameters are missing, look at the func page again. Also, set the channel to -1, that will auto-choose an available channel for the user.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-06-2009 , 05:35   Re: Hud Message
Reply With Quote #7

Quote:
Originally Posted by Xellath View Post
3 parameters are missing, look at the func page again. Also, set the channel to -1, that will auto-choose an available channel for the user.
I don't get it. can you show me ?
Mr.Noobie is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-06-2009 , 06:10   Re: Hud Message
Reply With Quote #8

PHP Code:
#include <amxmodx> 

public plugin_init( )  
{  
    
register_plugin"Death Message""1.0""Mr.Noobie" 
    
register_event"DeathMsg""eventDeath""a" )   


public 
eventDeath( ) 

    static 
victim 
    
static victimName32 ], message128 
  
    
victim read_data
  
    
get_user_namevictimvictimName31 
  
    if ( 
victim 
    { 
        
formatexmessagesizeof message 1"Nice try %s."victimName 
        
set_hudmessage225225225, -1.00.2926.012.00.10.2, -
        
show_hudmessagevictimmessage 
    } 

__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 06:34   Re: Hud Message
Reply With Quote #9

Xellath it doesn't matter since the param are filled with values by default. If not it could not even compile the plugin. So it's fine.
__________________
Arkshine is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-06-2009 , 08:56   Re: Hud Message
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
Xellath it doesn't matter since the param are filled with values by default. If not it could not even compile the plugin. So it's fine.
But why sometime it didn't show the hud message ?
Mr.Noobie is offline
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 18:18.


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