Raised This Month: $ Target: $400
 0% 

Hud message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 06-20-2007 , 06:55   Hud message
Reply With Quote #1

Well I took ToT|V!PER auto restart and 'ive changed the following code:

PHP Code:
public restart_time()   
   
set_task (get_cvar_float("amx_autorestart"),"restart_map",0)   
public 
restart_map() {    
      
set_hudmessage(01002000.30.5503.56.00.10.22)     
      
show_hudmessage(0,"[X] Round Restart Automatique!")    
      
set_cvar_float("sv_restart",2.0)   
      return 
PLUGIN_HANDLED
   
}   
public 
plugin_init() {   
   
register_plugin("Auto-Restart","1.00","ToT | V!PER")   
   
register_event("TextMsg","restart_time","a","2&#Game_C")   
   
register_cvar("amx_autorestart","20.0")
 
   return 
PLUGIN_CONTINUE     

I've added this:
PHP Code:
new RestartHudSync
...
public 
restart_map() {    
      ...
      
ShowSyncHudMsg(0RestartHudSync"[X] Round Restart Automatique!")
      ...
   }   
public 
plugin_init() {   
   ...
   
RestartHudSync CreateHudSyncObj()
 
   return 
PLUGIN_CONTINUE     

But i'm still facing the following problem; the hud message is too fast or we don't see it at all.

Can anyone clarify for me this:

effects, Float:fxtime, Float:holdtime, Float:fadeintime, Float:fadeouttime, in the:

set_hudmessage ( red=200, green=100, blue=0, Float=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2, channel=4 )
__________________
KiKoo et Bisous

Last edited by Tiny; 06-20-2007 at 07:00.
Tiny 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 21:28.


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