22.07.2018, 12:52
Something like this ?
Code:
new playerState = GetPlayerState(playerid); if(oldPlayerState[playerid] == playerState ) { if(playerState == PLAYER_STATE_ONFOOT || playerState == PLAYER_STATE_DRIVER || playerState == PLAYER_STATE_PASSENGER) { if(playerState == PLAYER_STATE_ONFOOT) { switch(GetPlayerAnimationIndex(playerid)) { case 958, 959, 1231, 1196: { CheatDetect[playerid] = false; return true; } } }