Raised This Month: $ Target: $400
 0% 

replace status to hud message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 01-07-2016 , 00:32   Re: replace status to hud message
Reply With Quote #9

check this !

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new g_HudSyncObj

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_message(get_user_msgid("StatusValue")    , "msg_StatusValue")
    
g_HudSyncObj CreateHudSyncObj();
}
public 
msg_StatusValue(iMsgIDiDestiClient)
{
    
    static 
valuestatus[2]
        
    
value get_msg_arg_int(2)
 
    if(
value && get_msg_arg_int(1) == 1)
    {
        
status[0] = iClient
        status
[1] = value
        show_status
(status)
    }
    return 
PLUGIN_HANDLED
}
public 
show_status(status[])
{
    
    new     
id
    
new     body
    
new     name[32]
    
    
get_user_name(status[1], name31)

    
get_user_aiming(status[0], idbody)
    
    if(
id != status[1])
        return
    
    
set_hudmessage(___, -1.00.5500.00.80.10.5, -1)
    
ShowSyncHudMsg(status[0], g_HudSyncObj"%s"name)
    
set_task(1.5 "show_status" status[0] + 4090 status 3)

__________________

Last edited by abdobiskra; 01-07-2016 at 00:49.
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:34.


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