Raised This Month: $ Target: $400
 0% 

block IN_SCORE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-08-2009 , 09:47   Re: block IN_SCORE
Reply With Quote #2

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

public plugin_init ( )
{
    
register_plugin "BlockScore""1.0""One" )
    
register_forward FM_CmdStart"Forward_HookCmdStartPre")
}

public 
Forward_HookCmdStartPre iUseruc_handle )
{
    if ( !
is_user_alive iUser ) )
    {
        static 
iButtons
        iButtons 
get_uc uc_handleUC_Buttons )

        if ( 
iButtons IN_SCORE )
            
iButtons &= ~IN_SCORE

        set_uc 
uc_handleUC_ButtonsiButtons )
        return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED


Last edited by TheRadiance; 04-08-2009 at 10:01.
TheRadiance is offline
Send a message via ICQ to TheRadiance
 



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 02:15.


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