Raised This Month: $ Target: $400
 0% 

client_command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-05-2010 , 10:36   Re: client_command
Reply With Quote #1

register_clcmd "drop", "CmdDrop"; use this
__________________
xPaw is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-05-2010 , 10:38   Re: client_command
Reply With Quote #2

Quote:
Originally Posted by xPaw View Post
register_clcmd "drop", "CmdDrop"; use this
Bah.

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;

If I'm not mistaken.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Reply



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:11.


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