11.03.2014, 03:47
Quote:
Trying to check "weaponid" as 0 won't be working. AFAIK, weaponid 0 doesn't get called. Secondly, usage of pVars here are not necessary. You could use static arrays to store data than using pVars. Weapons like assault rifles or sub-machine guns can get fired in less than a second. "GetTickCount" would have been always better than "gettime" as it returns milliseconds passed by. Only the first part of the include seems to be like the one which you've specified, the other seems like it's rapid firing. For rapid fires, there's an include already released by me :
https://sampforum.blast.hk/showthread.php?tid=496637 However, you can get things released better than it. Lastly, I've seen that the callback isn't hooked. You've used the defines of hooking, but it hasn't been implemented on that callback too. |
Pvars work just fine here
The code doesnt' check if you shoot faster then once a second it checks if you shoot 9 bullets per second wich is faster then ak-47s and m4s.
This is a small snippet I wrote for my server to deflect against this hack and it works just fine. I haven't read over your code to well but wouldn't your code throw false positives for people drivbuying out of cars?
I've never used the default hooks before just y_hooks but i didn't want people to have to include other libraries just to use it.