Raised This Month: $ Target: $400
 0% 

remplace print messag to Hud ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 01-04-2016 , 11:10   Re: remplace print messag to Hud ?
Reply With Quote #7

siriusmd99

Yes I tried it before but it does not work?



PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_message(get_user_msgid("TextMsg"),    "msgTextMsg"); 
    
set_task(5.0"test")
    
// Add your code here...
}
public 
test()
{
    
client_print(0print_chat"[AMXX] Hello World !")
}


public 
msgTextMsg()
{
    static 
textmsg[512];
    
get_msg_arg_string(2textmsg511);

    
//and here add hudmessage
    
set_hudmessage___0.00.8800.110.00.04 )
    
show_hudmessage(0"%s",textmsg)
    
// if it wont work then try to set task for hudmsg

    
return PLUGIN_HANDLED;
    

Attached Images
File Type: jpg Capture.JPG (14.5 KB, 117 views)
__________________

Last edited by abdobiskra; 01-04-2016 at 11:12.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 



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 09:31.


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