Using some code lines to detect a cheat..?
#9

As I wrote in 1st post, I do not have that file anymore on my pc.
I've scripted something that should work like that, I don't like it yet, needs a lot of improvements.

Anyways it's pretty simple:

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys){
    if(
newkeys & (KEY_AIM) || oldkeys & (KEY_AIM)){
        if(
HOLDING(KEY_FIRE) && oldkeys & (KEY_AIM)){
            
P[playerid][IsShooting] = true;
            return 
1;
        }
        
P[playerid][IsShooting] = false;    
        return 
1;
    }
return 
1;
}
public 
OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ){
    if(
P[playerid][IsShooting] == false)SendClientMessage(playerid, -1"Invalid bullet | Not shooting");
    return 
1;

Reply


Messages In This Thread
Using some code lines to detect a cheat..? - by v1k1nG - 07.09.2018, 16:44
Re: Using some code lines to detect a cheat..? - by IdonTmiss - 07.09.2018, 18:40
Re: Using some code lines to detect a cheat..? - by Shinja - 07.09.2018, 23:09
Re: Using some code lines to detect a cheat..? - by ShihabSoft - 08.09.2018, 05:58
Re: Using some code lines to detect a cheat..? - by v1k1nG - 08.09.2018, 13:55
Re: Using some code lines to detect a cheat..? - by NaS - 08.09.2018, 15:44
Re: Using some code lines to detect a cheat..? - by v1k1nG - 08.09.2018, 16:20
Re: Using some code lines to detect a cheat..? - by Shinja - 08.09.2018, 19:44
Re: Using some code lines to detect a cheat..? - by v1k1nG - 08.09.2018, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)