Raised This Month: $ Target: $400
 0% 

Limit for a command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-20-2009 , 22:09   Re: Limit for a command
Reply With Quote #1

Use return PLUGIN_HANDLED. The only catch is your blocker plugin must be placed before the plugin containing the function in plugins.ini

Tested with my aimbot detection plugin

plugins.ini:
Code:
thisplugin.amxx
aimbotdetet.amxx
PHP Code:
new g_iSaid33 ];

public 
plugin_init() 
{
    
register_concmd"amx_aimwatch" "HookCmd" );
}

public 
HookCmdid )
{
    if ( ++
g_iSaidid ] >= )
    {
        
client_printid print_center"BLOCKED" );
        return 
PLUGIN_HANDLED;
    }

__________________
Bugsy 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 15:11.


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