Allow c-bug [REP++]
#1

now.....When i use c-bug the server banned me for ammo hack how to check if the player pressed key fire and didn't press c key ?
my code to check for the key
PHP код:
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) 
PHP код:
if (PRESSED(KEY_FIRE)) 
Reply
#2

In another way i want to check if the player pressed FireKey and didn't press C key
Reply
#3

pawn Код:
if((newkeys & KEY_FIRE) && !(newkeys & KEY_CROUCH))
This will check if a player presses the fire key, while he doesn't press the crouch key.
Although if you want to check for c-bugging, this probably won't be the most effective way to check for it, as it only checks if you press both keys at the same time.

It might work some of the time, but it would be better to check if the player presses the crouch key after pressing the fire key, maybe with a small timer of half a second or so.
Reply
#4

Ok i will try
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)