Raised This Month: $ Target: $400
 0% 

HUD msg..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
samba88
Junior Member
Join Date: Jul 2011
Old 07-29-2011 , 18:55   Re: HUD msg..
Reply With Quote #1

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

new  freq_msg;

public 
plugin_init() {
    
    
register_plugin("blah""1.0""samba")
    
register_cvar("hud_msg""1.0"FCVAR_SERVER)
    
    
register_clcmd"say /test"" hud_msg" );
    
freq_msg=register_cvar("freq_msg""180")

}

public 
hud_msg() {
        
    new 
saopshe[62]
    
format(saopshe,61,"- My Message -"


    
set_hudmessage(255,00, -1.00.820.58.00.21.04);
    
show_hudmessage(0saopshe);
    
    
client_print(0print_console"%s"saopshe);
    
}

public 
set_msg() {
      
    new 
Float:freq_im get_pcvar_float(freq_msg);
    
    if (
freq_im 0.0)
        
set_task(freq_im"hud_msg");
    
    return 
PLUGIN_HANDLED

so if i type in chat /test its show me hud and print console msg but why it dont show me the msg automatically?

Last edited by samba88; 07-29-2011 at 19:26.
samba88 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 03:20.


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