Players don't have a state. Mobjs do.
You can get a player's mobj through player.mo, or in your case since your player is in p, p.mo.
NOTE that mo can be nil if the player is spectating or otherwise unavailable. Account for that before messing with the player object in some way!
On a separate...