Raised This Month: $ Target: $400
 0% 

[Question] Register Message from a specific player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-09-2011 , 12:57   [Question] Register Message from a specific player
Reply With Quote #1

For example I have:

PHP Code:
[...]
register_clcmd"register""register" )
register_clcmd"unregister""unregister" )

public 
registerid )
{
    
g_iHookMsgAmmoXid ] = register_messageg_iMsgAmmoX"Message_CurWeapon" )
}

public 
unregisterid )
{
    if( 
g_iHookMsgAmmoXid ] )
    {
        
unregister_messageg_iMsgAmmoXg_iHookMsgAmmoXid ] )
                    
        
g_iHookMsgAmmoXid ] = 0
    
}

It's necessary to disable the hook message (like in "unregister" function) when client disconect ?
dFF 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 04:19.


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