if ( SF -> getSAMP ( ) -> getPlayers ( ) -> pRemotePlayer [ ид игрока ] -> pPlayerData -> bytePlayerState == PLAYER_STATE_SPAWNED )