Raised This Month: $ Target: $400
 0% 

Block Kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-05-2010 , 16:40   Block Kill
Reply With Quote #1

I used the same method to block kill as I did with blocking drop:

PHP Code:
register_clcmd"drop""cmdDrop" )
register_clcmd"kill""cmdKill" 
PHP Code:
public cmdDrop(id)
{
    if( !
is_user_alive(id) )
    {
        return 
PLUGIN_CONTINUE;
    }
    
    if( 
gLastRequest == true && gToss == false  )
    {
        
client_print_coloridBlue"^4[Jailbreak] ^1You can't drop your weapon during a last request^4!" )
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

PHP Code:
public cmdKill(id)
{
    if( !
is_user_alive(id) )
    {
        return 
PLUGIN_CONTINUE;
    }
    
    if( 
gInLR[id] == true  )
    {
        
client_print_coloridBlue"^4[Jailbreak] ^1You can't kill yourself during a last request^4!" )
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

But for some reason it wont work ..
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
 


Thread Tools
Display Modes

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 00:17.


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