Raised This Month: $ Target: $400
 0% 

CurWeapon jitter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-17-2007 , 13:39   CurWeapon jitter
Reply With Quote #1

I wrote a quickie plugin for knives-only for DOD and it works for almost all players. But a few players can circumvent the plugin by quickly switching weapons back and forth. Its like the CurWeapon event isn't being caught and processed every time for them. So the code works. But a few players can trick it somehow. I've tried various combinations of event conditions, and tried putting a weapon check in the event function, but none of that made any difference. Any ideas why?

Code:
 
#include <amxmodx>
#include <amxmisc>
 
new g_enable
 
public plugin_init() {
 g_enabled = register_cvar("knivesonly_enable", "0")
    register_plugin("Knives Only", "0.1", "Vet")
    register_event("CurWeapon", "knivesonly", "be", "1=1", "2!1", "2!2", "2!19", "2!37)
}
 
public knivesonly(id) {
    if (get_pcvar_num(g_enable))
        client_cmd(id, "weapon_knife")
}
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
 



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 21:30.


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