if(newkeys == KEY_JUMP){if(IsPlayerInRangeOfPoint(playerid, range, x, y, z)){if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT){//do stuff}}}