AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud Message (https://forums.alliedmods.net/showthread.php?t=99435)

Mr.Noobie 08-05-2009 10:59

Hud Message
 
How do i display hud message by 1 letter per second ? instead of showing the whole hud message ??

Arkshine 08-05-2009 12:34

Re: Hud Message
 
In set_hudmessage() you have the "write out" effect If I remember well.

Mr.Noobie 08-06-2009 03:40

Re: Hud Message
 
Quote:

Originally Posted by Arkshine (Post 890863)
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 
    } 



Arkshine 08-06-2009 04:48

Re: Hud Message
 
I see nothing wrong, maybe it's because of another hud message which has overwritten this one in the current channel used.

Mr.Noobie 08-06-2009 05:11

Re: Hud Message
 
Quote:

Originally Posted by Arkshine (Post 891497)
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.

Xellath 08-06-2009 05:31

Re: Hud Message
 
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.

Mr.Noobie 08-06-2009 05:35

Re: Hud Message
 
Quote:

Originally Posted by Xellath (Post 891522)
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 ?

Xellath 08-06-2009 06:10

Re: Hud Message
 
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 
    } 



Arkshine 08-06-2009 06:34

Re: Hud Message
 
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.

Mr.Noobie 08-06-2009 08:56

Re: Hud Message
 
Quote:

Originally Posted by Arkshine (Post 891549)
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 ?


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

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