check player based on pid