Raised This Month: $ Target: $400
 0% 

Block a specific impulse, Here's how you do it


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-08-2004 , 22:38   Block a specific impulse, Here's how you do it
Reply With Quote #1

Code:
#include <amxmodx> #include <engine> public plugin_init() {     register_plugin("Block102","0.1","devicenull") } public client_prethink(id) {     new impulse     impulse = entity_get_int(id,EV_INT_impulse)     if (impulse==102) {         //To Block, uncomment next line         // entity_set_int(id,EV_INT_impulse,0)         //To Kick, uncomment below         // new name[32]         // get_user_name(id,name,32)         // server_cmd("amx_kick %s That command is blocked",name)         //Stop uncommenting         return PLUGIN_HANDLED     }     return PLUGIN_CONTINUE }
Replace 102 with the impulse # to block
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
 



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 14:43.


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