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:36   Re: Limit for a command
Reply With Quote #1

In this example I am creating a function to react when a console command is called, just as you normally do when creating a plugin. In this case, we want to block the "amx_aimwatch" command from being called after 3 times so we return PLUGIN_HANDLED in the blocker plugin. Console commands hit the list of plugins in order as listed in plugins.ini so as long as we place the blocker plugin before the plugin containing the function then we can prevent it from reaching the function plugin.
__________________
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