23.07.2018, 21:38
This doesn't even make any sense, i mean you do this:
Then you check right after for this:
Which really doesn't make any sense, you shouldn't be trying to make anti cheats if you made such a mistake i'm not trying to be mean but i'm saying know the language more first.
You checked if player was on foot or driver or passenger then u checked if on foot which means the function will never detect anyone unless if he was on foot thats for starters.
Second of all where is this code placed, third of all where is the detection? all i see is checks but where is the cheat detection?? this doesn't make any sense on so many levels man.
PHP Code:
if(playerState == PLAYER_STATE_ONFOOT || playerState == PLAYER_STATE_DRIVER || playerState == PLAYER_STATE_PASSENGER)
PHP Code:
if(playerState == PLAYER_STATE_ONFOOT)
You checked if player was on foot or driver or passenger then u checked if on foot which means the function will never detect anyone unless if he was on foot thats for starters.
Second of all where is this code placed, third of all where is the detection? all i see is checks but where is the cheat detection?? this doesn't make any sense on so many levels man.